| 140 | |
| 141 | |
| 142 | class _NoResultsError(CompletionError): |
| 143 | def __init__(self, parser: Cmd2ArgumentParser, arg_action: argparse.Action) -> None: |
| 144 | """CompletionError which occurs when there are no results. |
| 145 | |
| 146 | If hinting is allowed on this argument, then its hint text will display. |
| 147 | |
| 148 | :param parser: Cmd2ArgumentParser instance which owns the action being completed |
| 149 | :param arg_action: action being completed. |
| 150 | """ |
| 151 | # Set apply_style to False because we don't want hints to look like errors |
| 152 | super().__init__(_build_hint(parser, arg_action), apply_style=False) |
| 153 | |
| 154 | |
| 155 | class ArgparseCompleter: |
no outgoing calls
no test coverage detected
searching dependent graphs…