Skip to content

Commit 33d4a86

Browse files
[Console] Add Multiselect to choice()
1 parent 8896d7a commit 33d4a86

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

console/style.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -324,6 +324,12 @@ User Input Methods
324324

325325
$io->choice('Select the queue to analyze', ['queue1', 'queue2', 'queue3'], 'queue1');
326326

327+
Finally, you can specify that user can select multiple choices. User must
328+
separate each choice with a comma (e.g. typing ``1, 2`` will select choice 1
329+
and 2)::
330+
331+
$io->choice('Select the queue to analyze', ['queue1', 'queue2', 'queue3'], multiSelect: true);
332+
327333
Result Methods
328334
~~~~~~~~~~~~~~
329335

0 commit comments

Comments
 (0)