Skip to content

Commit 864c4da

Browse files
AbdelKader Bouadjadjaxabbuh
authored andcommitted
Add default indication in input arguments/options description
As i had to check in the code to find the information (even if it can seems logical for some people), i think it can be good to precise that here.
1 parent db32c99 commit 864c4da

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
@@ -91,7 +91,7 @@ There are three argument variants you can use:
9191
provided;
9292

9393
``InputArgument::OPTIONAL``
94-
The argument is optional and therefore can be omitted;
94+
The argument is optional and therefore can be omitted. This is the default mode when you omit or pass null to the ``$mode`` parameter of the ``addArgument`` method;
9595

9696
``InputArgument::IS_ARRAY``
9797
The argument can contain any number of values. For that reason, it must be
@@ -178,7 +178,7 @@ There are four option variants you can use:
178178
``InputOption::VALUE_IS_ARRAY``
179179
This option accepts multiple values (e.g. ``--dir=/foo --dir=/bar``);
180180
``InputOption::VALUE_NONE``
181-
Do not accept input for this option (e.g. ``--yell``);
181+
Do not accept input for this option (e.g. ``--yell``). This is the default mode when you omit or pass null to the ``$mode`` parameter of the ``addOption`` method;
182182
``InputOption::VALUE_REQUIRED``
183183
This value is required (e.g. ``--iterations=5``), the option itself is
184184
still optional;

0 commit comments

Comments
 (0)