8000 [Question helper] Add more accuracy on multiple choices answers · symfony/symfony-docs@62080d2 · GitHub
[go: up one dir, main page]

Skip to content

Commit 62080d2

Browse files
committed
[Question helper] Add more accuracy on multiple choices answers
1 parent c23bbe7 commit 62080d2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

components/console/helpers/questionhelper.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,8 @@ this use :method:`Symfony\\Component\\Console\\Question\\ChoiceQuestion::setMult
183183

184184
Now, when the user enters ``1,2``, the result will be:
185185
``You have just selected: blue, yellow``.
186+
The user can enter string: ``blue,yellow`` as well or even mix string and
187+
the index of the choice like ``blue,2``.
186188

187189
If the user does not enter anything, the result will be:
188190
``You have just selected: red, blue``.

0 commit comments

Comments
 (0)
0