summaryrefslogtreecommitdiff
path: root/cmd2/constants.py
diff options
context:
space:
mode:
authorKevin Van Brunt <kmvanbrunt@gmail.com>2020-08-07 15:26:40 -0400
committerKevin Van Brunt <kmvanbrunt@gmail.com>2020-08-07 15:26:40 -0400
commit3ada4bd53925ca20fdeb16fa971814637dc42e4d (patch)
treecb8cbcf6595b797a35131fba7a94ad4f7afd463c /cmd2/constants.py
parent2049496815bc0e46db2371f9173c0cef7496e706 (diff)
downloadcmd2-git-3ada4bd53925ca20fdeb16fa971814637dc42e4d.tar.gz
Moved code which copies subparser's settings to _register_subcommands().
Changed alias and macro commands to use as_subcommand_to() decorator. Updated CommandSet subcommand example to use help and description text.
Diffstat (limited to 'cmd2/constants.py')
-rw-r--r--cmd2/constants.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd2/constants.py b/cmd2/constants.py
index aa2ccb6a..9eaa9957 100644
--- a/cmd2/constants.py
+++ b/cmd2/constants.py
@@ -56,7 +56,7 @@ SUBCMD_HANDLER = 'cmd2_handler'
# subcommand attributes for the base command name and the subcommand name
SUBCMD_ATTR_COMMAND = 'parent_command'
SUBCMD_ATTR_NAME = 'subcommand_name'
-SUBCMD_ATTR_PARSER_ARGS = 'subcommand_parser_args'
+SUBCMD_ATTR_ADD_PARSER_KWARGS = 'subcommand_add_parser_kwargs'
# arpparse attribute linking to command set instance
PARSER_ATTR_COMMANDSET = 'command_set'