Skip to content

Commit

Permalink
Add default hint to multiselect prompt. (#50)
Browse files Browse the repository at this point in the history
  • Loading branch information
jessarcher authored Aug 16, 2023
1 parent f1950cb commit e9f5937
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ function select(string $label, array|Collection $options, int|string $default =
* @param array<int|string>|Collection<int, int|string> $default
* @return array<int|string>
*/
function multiselect(string $label, array|Collection $options, array|Collection $default = [], int $scroll = 5, bool|string $required = false, Closure $validate = null, string $hint = ''): array
function multiselect(string $label, array|Collection $options, array|Collection $default = [], int $scroll = 5, bool|string $required = false, Closure $validate = null, string $hint = 'Use the space bar to select options.'): array
{
return (new MultiSelectPrompt($label, $options, $default, $scroll, $required, $validate, $hint))->prompt();
}
Expand Down

0 comments on commit e9f5937

Please sign in to comment.