File tree 3 files changed +7
-6
lines changed
3 files changed +7
-6
lines changed Original file line number Diff line number Diff line change 1
1
.. index ::
2
- single: Console; Changing the Default Command
2
+ single: Console; Changing the Default Command
3
3
4
4
Changing the Default Command
5
5
============================
@@ -8,7 +8,7 @@ Changing the Default Command
8
8
The :method: `Symfony\\ Component\\ Console\\ Application::setDefaultCommand `
9
9
method was introduced in version 2.5.
10
10
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
12
12
the default command you just need to pass the command name you want to run by
13
13
default to the ``setDefaultCommand `` method::
14
14
@@ -45,7 +45,7 @@ Executing the application and changing the default Command::
45
45
$application->setDefaultCommand($command->getName());
46
46
$application->run();
47
47
48
- Test the new default console command by running the following
48
+ Test the new default console command by running the following:
49
49
50
50
.. code-block :: bash
51
51
@@ -59,7 +59,7 @@ This will print the following to the command line:
59
59
60
60
.. tip ::
61
61
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.
63
63
64
64
Learn More!
65
65
-----------
Original file line number Diff line number Diff line change 1
1
.. index ::
2
- single: Console; Single command application
2
+ single: Console; Single command application
3
3
4
4
Building a Single Command Application
5
5
=====================================
Original file line number Diff line number Diff line change 19
19
20
20
* :doc:` /components/console/introduction`
21
21
* :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`
23
24
* :doc:` /components/console/events`
24
25
* :doc:` /components/console/helpers/index`
25
26
You can’t perform that action at this time.
0 commit comments