diff options
author | Eric Lin <anselor@gmail.com> | 2020-09-10 09:15:05 -0400 |
---|---|---|
committer | anselor <anselor@gmail.com> | 2020-09-11 13:50:45 -0400 |
commit | 872da20feba57f42dde204da01dc48c4c87e1b54 (patch) | |
tree | 37f7812aae5eddac9d8d37ead8b22828378e7497 /cmd2/constants.py | |
parent | 6093e5e9c1b6366c67323f090d21696e867b6625 (diff) | |
download | cmd2-git-872da20feba57f42dde204da01dc48c4c87e1b54.tar.gz |
Changes default category to be heritable by default - meaning that subclasses will inherit the parent class's default category.
Adds optional flag to disable heritability.
Diffstat (limited to 'cmd2/constants.py')
-rw-r--r-- | cmd2/constants.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cmd2/constants.py b/cmd2/constants.py index 037a7cab..552c1a74 100644 --- a/cmd2/constants.py +++ b/cmd2/constants.py @@ -39,6 +39,7 @@ COMPLETER_FUNC_PREFIX = 'complete_' # The custom help category a command belongs to CMD_ATTR_HELP_CATEGORY = 'help_category' +CLASS_ATTR_DEFAULT_HELP_CATEGORY = 'cmd2_default_help_category' # The argparse parser for the command CMD_ATTR_ARGPARSER = 'argparser' |