Skip to content

Commit 4aef80f

Browse files
committed
Updated comments.
1 parent 4fe1b05 commit 4aef80f

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## 2.7.0 (TBD)
2+
3+
- Enhancements
4+
- Integrated rich-argparse with cmd2's default argparse help formatter.
5+
16
## 2.6.2 (June 26, 2025)
27

38
- Enhancements

cmd2/argparse_custom.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1009,7 +1009,7 @@ class Cmd2HelpFormatter(RawTextRichHelpFormatter):
10091009
# Disable markup rendering in usage, help, description, and epilog text.
10101010
# cmd2's built-in commands do not escape opening brackets in their help text
10111011
# and therefore rely on these settings being False. If you desire to use
1012-
# markup in your help text, inherit from a Cmd2 help formatter and override
1012+
# markup in your help text, inherit from Cmd2HelpFormatter and override
10131013
# these settings in that child class.
10141014
usage_markup: ClassVar[bool] = False
10151015
help_markup: ClassVar[bool] = False

cmd2/cmd2.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -765,8 +765,8 @@ def _build_parser(
765765
"""Build argument parser for a command/subcommand.
766766
767767
:param parent: CommandParent object which owns the command using the parser.
768-
This function assumes that parent is where parser_builder
769-
is defined when parser_builder is a classmethod.
768+
When parser_builder is a classmethod, this function passes
769+
parent's class to it.
770770
:param parser_builder: means used to build the parser
771771
:param prog: prog value to set in new parser
772772
:return: new parser

0 commit comments

Comments
 (0)