diff options
author | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2018-10-10 18:08:11 -0400 |
---|---|---|
committer | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2018-10-10 18:08:11 -0400 |
commit | 9b43502ab70d1bd013a4cdede4805c2c0819c8c4 (patch) | |
tree | c8c12774764fa0b9f226b1f02c3614236bb03a23 /examples | |
parent | f38e100fd77f4a136a4883d23b2f4f8b3cd934b7 (diff) | |
download | cmd2-git-9b43502ab70d1bd013a4cdede4805c2c0819c8c4.tar.gz |
Added code to handle -- in argparse completer
Diffstat (limited to 'examples')
-rwxr-xr-x | examples/tab_autocompletion.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/tab_autocompletion.py b/examples/tab_autocompletion.py index 571b4082..dad9e90d 100755 --- a/examples/tab_autocompletion.py +++ b/examples/tab_autocompletion.py @@ -163,7 +163,7 @@ class TabCompleteExample(cmd2.Cmd): # This variant demonstrates the AutoCompleter working with the orginial argparse. # Base argparse is unable to specify narg ranges. Autocompleter will keep expecting additional arguments - # for the -d/--duration flag until you specify a new flaw or end the list it with '--' + # for the -d/--duration flag until you specify a new flag or end processing of flags with '--' suggest_parser_orig = argparse.ArgumentParser() |