Skip to content

Commit 33bf462

Browse files
committed
bug #4407 [Components][Console] array options need array default values (xabbuh)
This PR was merged into the 2.3 branch. Discussion ---------- [Components][Console] array options need array default values | Q | A | ------------- | --- | Doc fix? | yes | New docs? | no | Applies to | all | Fixed tickets | #4406 Commits ------- 74b9555 array options need array default values
2 parents 4be6786 + 74b9555 commit 33bf462

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

components/console/introduction.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -357,11 +357,11 @@ You can combine ``VALUE_IS_ARRAY`` with ``VALUE_REQUIRED`` or ``VALUE_OPTIONAL``
357357
$this
358358
// ...
359359
->addOption(
360-
'iterations',
360+
'colors',
361361
null,
362362
InputOption::VALUE_REQUIRED | InputOption::VALUE_IS_ARRAY,
363-
'How many times should the message be printed?',
364-
1
363+
'Which colors do you like?',
364+
array('blue', 'red')
365365
);
366366
367367
Console Helpers

0 commit comments

Comments
 (0)