title: Phalcon and cli applications
body: <p>Is it possible to use phalcon in cli applications to handle requests with argv parameters?
  I want to use argv parameters to understand command that should be executed, e.g.
  <code>./script.php robot/create --color=red --feature=weapon</code></p>
  
  <p>and to get this inside my application with controllers, actions, etc in this way:</p>
  
  <p>controller: robot
  action: create
  GET params: color=red,feature=weapon</p>
  
  <p>Is it possible using CLI classes like </p>
  
  <ol>
  <li><p>Phalcon\ClI\Dispatcher
   <a href="http://docs.phalconphp.com/en/latest/api/Phalcon_CLI_Dispatcher.html" rel="nofollow noreferrer">http://docs.phalconphp.com/en/latest/api/Phalcon_CLI_Dispatcher.html</a></p></li>
  <li><p>Phalcon\CLI\Console <a href="http://docs.phalconphp.com/en/latest/api/Phalcon_CLI_Console.html" rel="nofollow noreferrer">http://docs.phalconphp.com/en/latest/api/Phalcon_CLI_Console.html</a></p></li>
  <li><p>Phalcon\CLI\Task <a href="http://docs.phalconphp.com/en/latest/api/Phalcon_CLI_Task.html" rel="nofollow noreferrer">http://docs.phalconphp.com/en/latest/api/Phalcon_CLI_Task.html</a></p></li>
  </ol>
  
  <p>and other similar?</p>
  
  <p>There are no docs and how-to manuals... Perhaps somebody has experience or just an idea.
  I understand that we have to define DI and initialize application, but how to make this in a more native way I just don't have any ideas.</p>
  
  <p>Also, one more question: can phalcon handle argv parameters automatically?</p>
  
  <p>As I understand, we should start Phalcon\CLI\Console object as application and pass to it DI. But the whole process/scenario... I just can't get it :)</p>