From 74b95555ed9275e55475c831db30538fd701adfa Mon Sep 17 00:00:00 2001 From: Christian Flothmann Date: Sat, 1 Nov 2014 14:31:20 +0100 Subject: [PATCH] array options need array default values --- components/console/introduction.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/components/console/introduction.rst b/components/console/introduction.rst index 7cf2d127f0e..fd3e5419a5e 100644 --- a/components/console/introduction.rst +++ b/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