diff options
author | Eric Lin <anselor@gmail.com> | 2020-07-27 11:43:16 -0400 |
---|---|---|
committer | anselor <anselor@gmail.com> | 2020-08-04 13:38:08 -0400 |
commit | 3a6db395cb28b5b13dde38284dc22791583012fa (patch) | |
tree | a901fe8323d47cb061d9c2d4961565603f27b773 /cmd2/constants.py | |
parent | 06cee9126839c465a356f8b44a5f008853eb8cad (diff) | |
download | cmd2-git-3a6db395cb28b5b13dde38284dc22791583012fa.tar.gz |
Adds support for injectable subcommands as part of CommandSet
load/unload.
Updated examples and documentation to include discussion of injectable
sub-commands.
Diffstat (limited to 'cmd2/constants.py')
-rw-r--r-- | cmd2/constants.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cmd2/constants.py b/cmd2/constants.py index 81d1a29b..0135e328 100644 --- a/cmd2/constants.py +++ b/cmd2/constants.py @@ -49,3 +49,7 @@ CMD_ATTR_ARGPARSER = 'argparser' # Whether or not tokens are unquoted before sending to argparse CMD_ATTR_PRESERVE_QUOTES = 'preserve_quotes' + +# sub-command attributes for the base command name and the sub-command name +SUBCMD_ATTR_COMMAND = 'parent_command' +SUBCMD_ATTR_NAME = 'subcommand_name' |