diff options
author | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2019-09-27 17:43:28 -0400 |
---|---|---|
committer | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2019-09-27 17:43:28 -0400 |
commit | f07808a8f90bd36f25e40b93a23e8360f9c5e7f6 (patch) | |
tree | cad69d00a43c23a34879af787a60e5fa55ee616c /cmd2 | |
parent | ef999cf0b5b058b8617e2bdf6e9a13e7da3d2198 (diff) | |
download | cmd2-git-f07808a8f90bd36f25e40b93a23e8360f9c5e7f6.tar.gz |
Changed some logic and added comment why
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) |