summaryrefslogtreecommitdiff
path: root/cmd2/argparse_custom.py
diff options
context:
space:
mode:
authorKevin Van Brunt <kmvanbrunt@gmail.com>2019-07-03 15:10:35 -0400
committerKevin Van Brunt <kmvanbrunt@gmail.com>2019-07-03 15:10:35 -0400
commit5b2ef868e7b3354dc4016dfeb28997d1b6549b2d (patch)
tree927a33ba59d491df9a21c18c77e2d6f17d834bb2 /cmd2/argparse_custom.py
parent5208170c694c027008ba4bca8a09476a01e0dc50 (diff)
downloadcmd2-git-5b2ef868e7b3354dc4016dfeb28997d1b6549b2d.tar.gz
Renamed ACHelpFormatter to Cmd2HelpFormatter
Diffstat (limited to 'cmd2/argparse_custom.py')
-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)