diff options
author | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2020-02-21 10:43:48 -0500 |
---|---|---|
committer | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2020-02-21 10:43:48 -0500 |
commit | 5e96ee67c94eed926e4160147a5005879da7c30d (patch) | |
tree | d3450a76caf27f5ef1ce2a451b034861a967e749 | |
parent | 22de85832e877b5b360eeacd4b71e00f69bf00e1 (diff) | |
download | cmd2-git-5e96ee67c94eed926e4160147a5005879da7c30d.tar.gz |
Since CompletionError handling has been moved from ArgparseCompleter to complete(), there is no longer a need
to suppress tab hints in the top-level parser for do_set.
-rw-r--r-- | cmd2/cmd2.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/cmd2/cmd2.py b/cmd2/cmd2.py index b314a683..a61badc7 100644 --- a/cmd2/cmd2.py +++ b/cmd2/cmd2.py @@ -2859,11 +2859,8 @@ class Cmd(cmd.Cmd): # Create the parser for the set command set_parser = DEFAULT_ARGUMENT_PARSER(parents=[set_parser_parent]) - - # Suppress tab-completion hints for this field. The completer method is going to create an - # ArgparseCompleter based on the actual parameter being completed and we only want that hint printing. set_parser.add_argument('value', nargs=argparse.OPTIONAL, help='new value for settable', - completer_method=complete_set_value, suppress_tab_hint=True) + completer_method=complete_set_value) # Preserve quotes so users can pass in quoted empty strings and flags (e.g. -h) as the value @with_argparser(set_parser, preserve_quotes=True) |