diff options
author | Todd Leonhardt <todd.leonhardt@gmail.com> | 2018-10-04 20:08:00 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-04 20:08:00 -0400 |
commit | 49cbec9969b4b53248d6097d8f395d92c74f7228 (patch) | |
tree | 512c8464af7671fd76314db7b09eda1d663ae0e4 /cmd2 | |
parent | dcd9011873f7adb1d05c5c5791688159ce2195c3 (diff) | |
parent | 9a0e21f9da66a37991441cac54762ac76a92484f (diff) | |
download | cmd2-git-49cbec9969b4b53248d6097d8f395d92c74f7228.tar.gz |
Merge pull request #565 from python-cmd2/subparser_titles
Added title subcommand groups
Diffstat (limited to 'cmd2')
-rw-r--r-- | cmd2/cmd2.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd2/cmd2.py b/cmd2/cmd2.py index f3827667..7aaacdb1 100644 --- a/cmd2/cmd2.py +++ b/cmd2/cmd2.py @@ -2268,7 +2268,7 @@ class Cmd(cmd.Cmd): alias_parser = ACArgumentParser(description=alias_description, epilog=alias_epilog, prog='alias') # Add subcommands to alias - alias_subparsers = alias_parser.add_subparsers() + alias_subparsers = alias_parser.add_subparsers(title='sub-commands') # alias -> create alias_create_help = "create or overwrite an alias" @@ -2446,7 +2446,7 @@ class Cmd(cmd.Cmd): macro_parser = ACArgumentParser(description=macro_description, epilog=macro_epilog, prog='macro') # Add subcommands to macro - macro_subparsers = macro_parser.add_subparsers() + macro_subparsers = macro_parser.add_subparsers(title='sub-commands') # macro -> create macro_create_help = "create or overwrite a macro" |