File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 44Changing the Default Behavior
55=============================
66
7- .. versionadded :: 2.5,
8- The :method: `Symfony\\ Component\\ Console\\ Application::setDefaultCommand `
9- method was introduced in version 2.5
10-
117When building a command line tool, you may need to customize it to fit your needs.
128Probably you want to change the Default Command that the Application runs or
139maybe you just want to run a Single Command instead of have to pass the command
@@ -16,6 +12,10 @@ name each time. Fortunately it is possible to do both.
1612Changing the Default Command
1713----------------------------
1814
15+ .. versionadded :: 2.5,
16+ The :method: `Symfony\\ Component\\ Console\\ Application::setDefaultCommand `
17+ method was introduced in version 2.5
18+
1919By default the Application will always run the ListCommand. In order to change
2020the default command you just need to pass the command name you want to run by
2121default to the :method: `Symfony\\ Component\\ Console\\ Application::setDefaultCommand `
You can’t perform that action at this time.
0 commit comments