spectre.support.CliExceptions

Exceptions

RequiredChoiceError(message, choices)

Error raised in the CLI when a required choice is not specified.

exception spectre.support.CliExceptions.RequiredChoiceError(message, choices)

Error raised in the CLI when a required choice is not specified.

Shows the list of available choices alongside the ‘click.UsageError’.

args
exit_code = 2

The exit code for this exception.

format_message()
show(file: IO[Any] | None = None) None
with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.