Skip to content

Commit a823669

Browse files
committed
docs(console): add tip to document deprecated elements explicitly
1 parent 985abbb commit a823669

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

console.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,10 @@ You can optionally define a description, help message and the
184184
``setDescription()`` method instead of the attribute to define the command
185185
description.
186186

187+
If you want to configure the command description and the command name, use the
188+
``AsCommand`` attribute to it, as follows:
189+
``#[AsCommand(name: 'app:create-user', description:'Creates users')]``.
190+
187191
The ``configure()`` method is called automatically at the end of the command
188192
constructor. If your command defines its own constructor, set the properties
189193
first and then call to the parent constructor, to make those properties

0 commit comments

Comments
 (0)