File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff 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 its 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+
219227You can combine ``VALUE_IS_ARRAY `` with ``VALUE_REQUIRED `` or
220228``VALUE_OPTIONAL `` like this::
221229
You can’t perform that action at this time.
0 commit comments