Skip to content

Commit 89029cd

Browse files
committed
Reworded again the note about "optional options"
1 parent 221597a commit 89029cd

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

components/console/introduction.rst

+5-5
Original file line numberDiff line numberDiff line change
@@ -296,11 +296,11 @@ declare a one-letter shortcut that you can call with a single dash like
296296

297297
.. tip::
298298

299-
There is nothing forbidding you to create a command with an *optional option*,
300-
which is an input option set to ``InputOption::OPTIONAL`` mode. You will just
301-
not be able to distinguish when the flag for that option was used without a
302-
value (``command --yell``) or when it was not used at all (``command``).
303-
In both cases the value retrieved for the option will be the same ``null``.
299+
There is nothing forbidding you to create a command with an option that
300+
optionally accepts a value. However, there is no way you can distinguish
301+
when the option was used without a value (``command --yell``) or when it
302+
wasn't used at all (``command``). In both cases, the value retrieved for
303+
the option will be ``null``.
304304

305305
For example, add a new option to the command that can be used to specify
306306
how many times in a row the message should be printed::

0 commit comments

Comments
 (0)