Skip to content

Commit bd7dfbf

Browse files
author
Eugene Dounar
committed
[symfony#2290] Single command apps with arguments
| Q | A | ------------- | --- | Doc fix? | yes | New docs? | no | Applies to | all | Fixed tickets | symfony#2290
1 parent 35d7bc6 commit bd7dfbf

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

components/console/single_command_tool.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,3 +47,8 @@ it is possible to remove this need by extending the application::
4747

4848
When calling your console script, the command `MyCommand` will then always
4949
be used, without having to pass its name.
50+
51+
.. note::
52+
53+
If your command accepts one or more arguments, you may also want to override
54+
getDefinition() method.

0 commit comments

Comments
 (0)