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``).
199
199
this situation, always place options after the command name, or avoid using
200
200
a space to separate the option name from its value.
201
201
202
- There are four option variants you can use:
202
+ There are five option variants you can use:
203
203
204
204
``InputOption::VALUE_IS_ARRAY ``
205
205
This option accepts multiple values (e.g. ``--dir=/foo --dir=/bar ``);
@@ -216,6 +216,14 @@ There are four option variants you can use:
216
216
This option may or may not have a value (e.g. ``--yell `` or
217
217
``--yell=loud ``).
218
218
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
+
219
227
You can combine ``VALUE_IS_ARRAY `` with ``VALUE_REQUIRED `` or
220
228
``VALUE_OPTIONAL `` like this::
221
229
You can’t perform that action at this time.
0 commit comments