Skip to content

Commit 58500cb

Browse files
committed
Updated documentation
1 parent 07e895d commit 58500cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd2/cmd2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2829,7 +2829,7 @@ def complete_set_value(self, text: str, line: str, begidx: int, endidx: int,
28292829
# Create a parser with a value field based on this settable
28302830
settable_parser = DEFAULT_ARGUMENT_PARSER(parents=[Cmd.set_parser_parent])
28312831

2832-
# Settables that populate choices have the values of those choices overwrite the arg name
2832+
# Settables with choices list the values of those choices instead of the arg name
28332833
# in help text and this shows in tab-completion hints. Set metavar to avoid this.
28342834
arg_name = 'value'
28352835
settable_parser.add_argument(arg_name, metavar=arg_name, help=settable.description,

0 commit comments

Comments
 (0)