| 128 | |
| 129 | |
| 130 | class _UnfinishedFlagError(CompletionError): |
| 131 | def __init__(self, flag_arg_state: _ArgumentState) -> None: |
| 132 | """CompletionError which occurs when the user has not finished the current flag. |
| 133 | |
| 134 | :param flag_arg_state: information about the unfinished flag action. |
| 135 | """ |
| 136 | arg = f"{argparse._get_action_name(flag_arg_state.action)}" |
| 137 | err = f"{build_range_error(flag_arg_state.min, flag_arg_state.max)}" |
| 138 | error = f"Error: argument {arg}: {err} ({flag_arg_state.count} entered)" |
| 139 | super().__init__(error) |
| 140 | |
| 141 | |
| 142 | class _NoResultsError(CompletionError): |
no outgoing calls
no test coverage detected
searching dependent graphs…