summaryrefslogtreecommitdiff
path: root/cmd2/cmd2.py
diff options
context:
space:
mode:
authorKevin Van Brunt <kmvanbrunt@gmail.com>2020-02-10 11:51:16 -0500
committerGitHub <noreply@github.com>2020-02-10 11:51:16 -0500
commitbf9b87605a19fc2bb1a01435b3f11f66b18fed93 (patch)
treea540014ec1dabbefa48e30289462d3315c85f7ce /cmd2/cmd2.py
parent48cdf7d984a738e577a0867716804216c474cc18 (diff)
parent9f599fb73a5ce0fb2548b94391883f37a0ca173b (diff)
downloadcmd2-git-bf9b87605a19fc2bb1a01435b3f11f66b18fed93.tar.gz
Merge pull request #883 from python-cmd2/flag_rename
do_set flag rename
Diffstat (limited to 'cmd2/cmd2.py')
-rw-r--r--cmd2/cmd2.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd2/cmd2.py b/cmd2/cmd2.py
index 4fbda57e..8f2cdca3 100644
--- a/cmd2/cmd2.py
+++ b/cmd2/cmd2.py
@@ -2851,7 +2851,7 @@ class Cmd(cmd.Cmd):
"Call without arguments for a list of all settable parameters with their values.\n"
"Call with just param to view that parameter's value.")
set_parser_parent = DEFAULT_ARGUMENT_PARSER(description=set_description, add_help=False)
- set_parser_parent.add_argument('-l', '--long', action='store_true',
+ set_parser_parent.add_argument('-v', '--verbose', action='store_true',
help='include description of parameters when viewing')
set_parser_parent.add_argument('param', nargs=argparse.OPTIONAL, help='parameter to set or view',
choices_method=_get_settable_completion_items, descriptive_header='Description')
@@ -2916,7 +2916,7 @@ class Cmd(cmd.Cmd):
# Display the results
for param in sorted(results, key=self.default_sort_key):
result_str = results[param]
- if args.long:
+ if args.verbose:
self.poutput('{} # {}'.format(utils.align_left(result_str, width=max_len),
self.settables[param].description))
else: