code: protected function askForChoiceData($optionIdentifier, $optionName, array $choices, $defaultValue)
      {
          $optionValue = $this->input->getOption($optionIdentifier);
          $optionValue = !empty($optionValue) ? $optionValue :
              $defaultValue;
  
          $question = $this->getChoiceQuestion($optionName, $optionValue, $choices);
          $optionValue = $this->questionHelper->ask(
              $this->input,
              $this->output,
              $question
          );
  
          $this->input->setOption($optionIdentifier, $optionValue);
  
          return $optionValue;
      }
docs: Asks a choice question that fills provided option.
  
  @param string $optionIdentifier
  @param string $optionName
  @param array $choices
  @param string $defaultValue
  
  @return string