Skip to content

[#2290] Single command apps with arguments #2292

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 21, 2013
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
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