diff options
Diffstat (limited to 'cmd2')
-rw-r--r-- | cmd2/argparse_completer.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/cmd2/argparse_completer.py b/cmd2/argparse_completer.py index c1200ae5..66ee89f6 100644 --- a/cmd2/argparse_completer.py +++ b/cmd2/argparse_completer.py @@ -331,8 +331,9 @@ class AutoCompleter(object): # Check if we have a positional to consume this token if pos_arg_state is not None: - if not update_mutex_groups(pos_arg_state.action): - 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 + update_mutex_groups(pos_arg_state.action) consume_argument(pos_arg_state) |