summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cmd2/argparse_custom.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd2/argparse_custom.py b/cmd2/argparse_custom.py
index a36d0376..0b0fa981 100644
--- a/cmd2/argparse_custom.py
+++ b/cmd2/argparse_custom.py
@@ -111,7 +111,7 @@ def register_custom_actions(parser: argparse.ArgumentParser) -> None:
# noinspection PyCompatibility,PyShadowingBuiltins,PyShadowingBuiltins
-class ACHelpFormatter(argparse.RawTextHelpFormatter):
+class Cmd2HelpFormatter(argparse.RawTextHelpFormatter):
"""Custom help formatter to configure ordering of help text"""
def _format_usage(self, usage, actions, groups, prefix) -> str:
@@ -295,7 +295,7 @@ class Cmd2ArgParser(argparse.ArgumentParser):
def __init__(self, *args, **kwargs) -> None:
if 'formatter_class' not in kwargs:
- kwargs['formatter_class'] = ACHelpFormatter
+ kwargs['formatter_class'] = Cmd2HelpFormatter
super().__init__(*args, **kwargs)
register_custom_actions(self)