simplelogincmd.cli.util.input.prompt_choice

prompt_choice(text: str, options: list) int

Prompt the user to choose one of a list of items

Parameters:
  • text (str) – The prompt to display to the user, below the list of options

  • options (list) – List of options from which the user can choose

Raises:

ValueError – if options is empty

Returns:

The index of the item chosen

Return type:

int