The feature will allow you to change the default Command when you are creating Console Applications.
Before this if you don’t provide the command you want to execute it executes the ListCommandby default, with this feature you are now able to change that behavior by simple setting the Command you want to be the default. Let’s see how you can do it:
Now that we have our HelloWorldCommand let’s create the application and make it the default command:
Let’s execute it:
Simple, if you want to list all commands you just need to do php app.php list.
The default command does not accept arguments only options.