Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 74b9555

Browse filesBrowse files
committed
array options need array default values
1 parent a4f7d51 commit 74b9555
Copy full SHA for 74b9555

File tree

Expand file treeCollapse file tree

1 file changed

+3
-3
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-3
lines changed

‎components/console/introduction.rst

Copy file name to clipboardExpand all lines: components/console/introduction.rst
+3-3Lines changed: 3 additions & 3 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.