diff options
author | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2019-07-10 14:55:12 -0400 |
---|---|---|
committer | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2019-07-10 14:55:12 -0400 |
commit | 60e294ee645e092b8713d5cf60f8797d3685416a (patch) | |
tree | b0c9e40cd54080e7765db0bd3a0f7328db46db11 /cmd2/argparse_completer.py | |
parent | 2ebf63617990d1ee0ebe08f7c3938234c7c5fd24 (diff) | |
download | cmd2-git-60e294ee645e092b8713d5cf60f8797d3685416a.tar.gz |
Removed unused variable
Diffstat (limited to 'cmd2/argparse_completer.py')
-rw-r--r-- | cmd2/argparse_completer.py | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/cmd2/argparse_completer.py b/cmd2/argparse_completer.py index d87229a7..27e7df25 100644 --- a/cmd2/argparse_completer.py +++ b/cmd2/argparse_completer.py @@ -224,9 +224,6 @@ class AutoCompleter(object): # _ArgumentState of the current flag flag_arg_state = None - # dict is used because object wrapper is necessary to allow inner functions to modify outer variables - remainder = {'arg': None, 'action': None} - matched_flags = [] current_is_positional = False consumed_arg_values = {} # dict(arg_name -> [values, ...]) @@ -404,9 +401,7 @@ class AutoCompleter(object): # To allow completion of the final token, we only do the following on preceding tokens if not is_last_token: - if remainder['arg'] is not None: - skip_remaining_flags = True - elif flag_arg_state is not None and flag_arg_state.min is not None: + if flag_arg_state is not None and flag_arg_state.min is not None: flag_arg_state.needed = flag_arg_state.count < flag_arg_state.min # Here we're done parsing all of the prior arguments. We know what the next argument is. |