Skip to content

Commit 49cbec9

Browse files
authored
Merge pull request #565 from python-cmd2/subparser_titles
Added title subcommand groups
2 parents dcd9011 + 9a0e21f commit 49cbec9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cmd2/cmd2.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2268,7 +2268,7 @@ def alias_list(self, args: argparse.Namespace):
22682268
alias_parser = ACArgumentParser(description=alias_description, epilog=alias_epilog, prog='alias')
22692269

22702270
# Add subcommands to alias
2271-
alias_subparsers = alias_parser.add_subparsers()
2271+
alias_subparsers = alias_parser.add_subparsers(title='sub-commands')
22722272

22732273
# alias -> create
22742274
alias_create_help = "create or overwrite an alias"
@@ -2446,7 +2446,7 @@ def macro_list(self, args: argparse.Namespace):
24462446
macro_parser = ACArgumentParser(description=macro_description, epilog=macro_epilog, prog='macro')
24472447

24482448
# Add subcommands to macro
2449-
macro_subparsers = macro_parser.add_subparsers()
2449+
macro_subparsers = macro_parser.add_subparsers(title='sub-commands')
24502450

24512451
# macro -> create
24522452
macro_create_help = "create or overwrite a macro"

0 commit comments

Comments
 (0)