File tree Expand file tree Collapse file tree 3 files changed +7
-6
lines changed
Expand file tree Collapse file tree 3 files changed +7
-6
lines changed Original file line number Diff line number Diff line change 11.. index ::
2- single: Console; Changing the Default Command
2+ single: Console; Changing the Default Command
33
44Changing the Default Command
55============================
@@ -8,7 +8,7 @@ Changing the Default Command
88 The :method: `Symfony\\ Component\\ Console\\ Application::setDefaultCommand `
99 method was introduced in version 2.5.
1010
11- By default the Application will always run the ``ListCommand ``. In order to change
11+ will always run the ``ListCommand `` when no command name is passed . In order to change
1212the default command you just need to pass the command name you want to run by
1313default to the ``setDefaultCommand `` method::
1414
@@ -45,7 +45,7 @@ Executing the application and changing the default Command::
4545 $application->setDefaultCommand($command->getName());
4646 $application->run();
4747
48- Test the new default console command by running the following
48+ Test the new default console command by running the following:
4949
5050.. code-block :: bash
5151
@@ -59,7 +59,7 @@ This will print the following to the command line:
5959
6060 .. tip ::
6161
62- The feature was a limitation since you cannot use the Command `` arguments `` .
62+ This feature has a limitation: you cannot use it with any Command arguments.
6363
6464Learn More!
6565-----------
Original file line number Diff line number Diff line change 11.. index ::
2- single: Console; Single command application
2+ single: Console; Single command application
33
44Building a Single Command Application
55=====================================
Original file line number Diff line number Diff line change 1919
2020 * :doc:` /components/console/introduction`
2121 * :doc:` /components/console/usage`
22- * :doc:` /components/console/changing_default_behavior`
22+ * :doc:` /components/console/single_command_tool`
23+ * :doc:` /components/console/changing_default_command`
2324 * :doc:` /components/console/events`
2425 * :doc:` /components/console/helpers/index`
2526
You can’t perform that action at this time.
0 commit comments