  def GetOptionFromUser(self) -> Optional[PromptOption]:
    """Override of abstract method. Forces a choice among options."""
    selection = 0
    while not 0 < selection <= len(self._options):
      for i, option in enumerate(self._options):
        logger.info('{0:d}: {1:s}\n'.format(i + 1, option.ToQuestion()))
      logger.info('Choose one: ')
      selection_raw = input()
      if selection_raw.isdecimal():
        selection = int(selection_raw)
    return self._options[selection - 1]
Override of abstract method. Forces a choice among options.
libcloudforensics/prompts.py