From e1b7cc21a3eefa38c761e796d2488d2f41be2708 Mon Sep 17 00:00:00 2001 From: guesmiii Date: Mon, 23 May 2022 21:38:10 +0200 Subject: [PATCH] Clarify VALUE_IS_ARRAY usage VALUE_IS_ARRAY can't be used alone and must be combined with VALUE_REQUIRED or VALUE_OPTIONAL else we will get InvalidArgumentException('Impossible to have an option mode VALUE_IS_ARRAY if the option does not accept a value.') --- console/input.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/console/input.rst b/console/input.rst index b7534d21abd..99c02f17607 100644 --- a/console/input.rst +++ b/console/input.rst @@ -217,7 +217,7 @@ There are four option variants you can use: This option may or may not have a value (e.g. ``--yell`` or ``--yell=loud``). -You can combine ``VALUE_IS_ARRAY`` with ``VALUE_REQUIRED`` or +You need to combine ``VALUE_IS_ARRAY`` with ``VALUE_REQUIRED`` or ``VALUE_OPTIONAL`` like this:: $this