Skip to content

Commit e124ee6

Browse files
committed
Use statement for InputOption added to example
1 parent 0607517 commit e124ee6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

console/input.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,9 @@ simply as a boolean flag without a value (e.g. ``--yell``).
118118
For example, add a new option to the command that can be used to specify
119119
how many times in a row the message should be printed::
120120

121+
use Symfony\Component\Console\Input\InputOption;
122+
// ...
123+
121124
$this
122125
// ...
123126
->addOption(

0 commit comments

Comments
 (0)