Skip to content

[Console] Add explicit note about the type of VALUE_NONE #15309

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 21, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions console/input.rst
Original file line number Diff line number Diff line change
Expand Up @@ -205,8 +205,8 @@ There are four option variants you can use:
This option accepts multiple values (e.g. ``--dir=/foo --dir=/bar``);

``InputOption::VALUE_NONE``
Do not accept input for this option (e.g. ``--yell``). This is the default
behavior of options;
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.
This is the default behavior of options;

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