Skip to content

Commit 403cb33

Browse files
melkamarjaviereguiluz
authored andcommitted
Add explicit note about the type of VALUE_NONE
It was not clear what the default value nor what the type returned from InputOption::VALUE_NONE is.
1 parent 7585026 commit 403cb33

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

console/input.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,8 +205,8 @@ There are four option variants you can use:
205205
This option accepts multiple values (e.g. ``--dir=/foo --dir=/bar``);
206206

207207
``InputOption::VALUE_NONE``
208-
Do not accept input for this option (e.g. ``--yell``). This is the default
209-
behavior of options;
208+
Do not accept input for this option (e.g. ``--yell``). The value returned from this option will be a boolean, ``false`` if the option is not provided.
209+
This is the default behavior of options;
210210

211211
``InputOption::VALUE_REQUIRED``
212212
This value is required (e.g. ``--iterations=5`` or ``-i5``), the option

0 commit comments

Comments
 (0)