We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ef999cf commit f07808aCopy full SHA for f07808a
cmd2/argparse_completer.py
@@ -331,8 +331,9 @@ def update_mutex_groups(arg_action: argparse.Action) -> bool:
331
332
# Check if we have a positional to consume this token
333
if pos_arg_state is not None:
334
- if not update_mutex_groups(pos_arg_state.action):
335
- return []
+ # No need to check for an error since we remove a completed group's positional from
+ # remaining_positionals which means this action can't belong to a completed mutex group
336
+ update_mutex_groups(pos_arg_state.action)
337
338
consume_argument(pos_arg_state)
339
0 commit comments