title: CodeIgniter CLI - passing multiple args to method
body: <p>I'm testing out some models from a CodeIgniter project via CLI, the method in question has two arguments:</p>
  
  <pre><code>public function get_questions_from_block($block_name, $return_array = FALSE)
  </code></pre>
  
  <p>I have tried this:</p>
  
  <pre><code>php index.php test_controller get_question_block_name example_block TRUE
  </code></pre>
  
  <p>but it returns 0 or FALSE. How do I pass multiple arguments through CLI ? Do I have to use :</p>
  
  <pre><code>$_SERVER['argv'];  
  </code></pre>
  
  <p>to get all the arguments? Or is there an easier way?</p>