Skip to content

Commit 18363af

Browse files
committed
Add documenation for Console Negatable option
1 parent cbffbe9 commit 18363af

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

console/input.rst

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ separation at all (e.g. ``-i 5`` or ``-i5``).
199199
this situation, always place options after the command name, or avoid using
200200
a space to separate the option name from its value.
201201

202-
There are four option variants you can use:
202+
There are five option variants you can use:
203203

204204
``InputOption::VALUE_IS_ARRAY``
205205
This option accepts multiple values (e.g. ``--dir=/foo --dir=/bar``);
@@ -216,6 +216,14 @@ There are four option variants you can use:
216216
This option may or may not have a value (e.g. ``--yell`` or
217217
``--yell=loud``).
218218

219+
``InputOption::VALUE_NEGATABLE``
220+
Accept either the flag (e.g. ``--yell``) or it negation (e.g.
221+
``--no-yell``).
222+
223+
.. versionadded:: 5.3
224+
225+
The ``InputOption::VALUE_NEGATABLE`` constant was introduced in Symfony 5.3
226+
219227
You can combine ``VALUE_IS_ARRAY`` with ``VALUE_REQUIRED`` or
220228
``VALUE_OPTIONAL`` like this::
221229

0 commit comments

Comments
 (0)