File tree 1 file changed +6
-3
lines changed
1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -296,9 +296,12 @@ declare a one-letter shortcut that you can call with a single dash like
296
296
297
297
.. tip ::
298
298
299
- It is also possible to make an option *optionally * accept a value (so that
300
- ``--yell ``, ``--yell=loud `` or ``--yell loud `` work). Options can also be configured to
301
- accept an array of values.
299
+ It may look that it's possible to make an option *optionally * accept a value
300
+ (so that ``--yell `` or ``--yell=loud `` work). However, if you call a command
301
+ with an option without a value, you'll retrieve ``null `` as the option's value
302
+ which is the same when you omit the option. In practice, this means that a
303
+ command cannot distinguish between passing an option without a value and not
304
+ passing that very same option.
302
305
303
306
For example, add a new option to the command that can be used to specify
304
307
how many times in a row the message should be printed::
You can’t perform that action at this time.
0 commit comments