symfony/Console — pull request #2 by francodacosta (2012-04-03 13:06:24+00:00)
Title: Default command

For stand alone applications passing a command is mandatory but most of the times not really necessary

So instead of calling my application like this ```/myapp.php mycommand --my_option ``` I can just write ```./myapp.php --my_option ```

this PR allows for it while allowing to add (and execute) more than one command

You just need to add ```$app->setDefaultCommandName('command:name');``` and if the command is not found the default one will be executed

includes unit tests and does not breack BC