(type_: _RemoteControlType, command: str)
| 57 | |
| 58 | |
| 59 | def _verify_command_name(type_: _RemoteControlType, command: str) -> None: |
| 60 | choices = _get_commands_of_type(type_) |
| 61 | |
| 62 | if command not in choices: |
| 63 | command_listing = ", ".join(choices) |
| 64 | raise click.UsageError( |
| 65 | message=f'Command {command} not recognized. Available {type_} commands: {command_listing}', |
| 66 | ) |
| 67 | |
| 68 | |
| 69 | def _list_option(type_: _RemoteControlType): |
no test coverage detected
searching dependent graphs…