spectre.support.CliExceptions¶
Exceptions
|
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¶
- cmd: t.Final[Command | None]¶
- ctx: Context | None¶
- exit_code: t.ClassVar[int] = 2¶
The exit code for this exception.
- format_message()¶
- message: t.Final[str]¶
- show(file: IO[Any] | None = None) None¶
- show_color: t.Final[bool | None]¶
- with_traceback()¶
Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.