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
147147:ref: `default services.yaml configuration <service-container-services-load-example >`,
148148this is already done for you, thanks to :ref: `autoconfiguration <services-autoconfigure >`.
149149
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::
151151
152152 #[AsCommand(
153153 name: 'app:create-user',
154154 description: 'Creates a new user.', // the command description shown when running "php bin/console list"
155155 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'],
156157 )]
157158 class CreateUserCommand
158159 {
You can’t perform that action at this time.
0 commit comments