Permalink
Browse files

bug #4407 [Components][Console] array options need array default valu…

…es (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
  • Loading branch information...
wouterj committed Nov 8, 2014
2 parents 4be6786 + 74b9555 commit 33bf4627545e212a10af5180b790428ebacf0ae3
Showing with 3 additions and 3 deletions.
  1. +3 −3 components/console/introduction.rst
@@ -357,11 +357,11 @@ You can combine ``VALUE_IS_ARRAY`` with ``VALUE_REQUIRED`` or ``VALUE_OPTIONAL``
$this
// ...
->addOption(
'iterations',
'colors',
null,
InputOption::VALUE_REQUIRED | InputOption::VALUE_IS_ARRAY,
'How many times should the message be printed?',
1
'Which colors do you like?',
array('blue', 'red')
);
Console Helpers

0 comments on commit 33bf462

Please sign in to comment.