Skip to content

Commit

Permalink
bug #4407 [Components][Console] array options need array default valu…
Browse files Browse the repository at this point in the history
…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 33bf462
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions components/console/introduction.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 33bf462

Please sign in to comment.