From d5b032022659e7b409b6213701dc75b84412503c Mon Sep 17 00:00:00 2001 From: Maximilian Schmidt Date: Sat, 13 Oct 2018 11:31:57 +0200 Subject: [PATCH] Added 'hint' option to 'choose' IO --- Classes/Utility/IO.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Classes/Utility/IO.php b/Classes/Utility/IO.php index b93c36b..8a449e0 100644 --- a/Classes/Utility/IO.php +++ b/Classes/Utility/IO.php @@ -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);