Skip to content
This repository has been archived by the owner on Dec 12, 2021. It is now read-only.

Commit

Permalink
Added 'hint' option to 'choose' IO
Browse files Browse the repository at this point in the history
  • Loading branch information
Maximilian Schmidt committed Oct 13, 2018
1 parent d496729 commit d5b0320
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Classes/Utility/IO.php
Original file line number Diff line number Diff line change
Expand Up @@ -107,10 +107,10 @@ public function prompt(string $question, string $default = null, bool $multiline
return $input->prompt();
}

public function choose(string $question, array $answers, string $default = null, bool $strict = false)
public function choose(string $question, array $answers, string $default = null, bool $hint = false, bool $strict = false)
{
$input = $this->climate->input($question);
$input->accept($answers);
$input->accept($answers, $hint);

if ($default !== null) {
$input->defaultTo($default);
Expand Down

0 comments on commit d5b0320

Please sign in to comment.