Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
[#2290] Single command apps with arguments
| Q             | A
| ------------- | ---
| Doc fix?      | yes
| New docs?     | no
| Applies to    | all
| Fixed tickets | #2290
  • Loading branch information
Eugene Dounar committed Mar 10, 2013
commit bd7dfbfe2d95716b08a309a4026d678ce1819fc7
5 changes: 5 additions & 0 deletions components/console/single_command_tool.rst
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,8 @@ it is possible to remove this need by extending the application::

When calling your console script, the command `MyCommand` will then always
be used, without having to pass its name.

.. note::

If your command accepts one or more arguments, you may also want to override
getDefinition() method.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should indent these 2 lines with 4 spaces

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you should change getDefinition() to a method link to the API docs as described here: http://symfony.com/doc/current/contributing/documentation/format.html#adding-links