File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -147,12 +147,13 @@ If you can't use PHP attributes, register the command as a service and
147
147
:ref: `default services.yaml configuration <service-container-services-load-example >`,
148
148
this is already done for you, thanks to :ref: `autoconfiguration <services-autoconfigure >`.
149
149
150
- You can also use ``#[AsCommand] `` to add a description and longer help text for the command::
150
+ You can also use ``#[AsCommand] `` to add a description, usages, and longer help text for the command::
151
151
152
152
#[AsCommand(
153
153
name: 'app:create-user',
154
154
description: 'Creates a new user.', // the command description shown when running "php bin/console list"
155
155
help: 'This command allows you to create a user...', // the command help shown when running the command with the "--help" option
156
+ usages: ['app:create-user alice'],
156
157
)]
157
158
class CreateUserCommand
158
159
{
You can’t perform that action at this time.
0 commit comments