summaryrefslogtreecommitdiff
path: root/cmd2/argparse_custom.py
diff options
context:
space:
mode:
authorKevin Van Brunt <kmvanbrunt@gmail.com>2019-07-12 12:42:04 -0400
committerKevin Van Brunt <kmvanbrunt@gmail.com>2019-07-12 12:42:04 -0400
commit9bb6b84608b6262d228c021c7115e1389eed33e3 (patch)
treefe47cc9b863fd6ed0a76196dd4f27e51fdc3eb6f /cmd2/argparse_custom.py
parent98dd8cf6a5e03e33a383c64bff4ff4b1bf2804cf (diff)
downloadcmd2-git-9bb6b84608b6262d228c021c7115e1389eed33e3.tar.gz
Renamed Cmd2ArgParser to ArgParser
Diffstat (limited to 'cmd2/argparse_custom.py')
-rw-r--r--cmd2/argparse_custom.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/cmd2/argparse_custom.py b/cmd2/argparse_custom.py
index 43099823..e902daf0 100644
--- a/cmd2/argparse_custom.py
+++ b/cmd2/argparse_custom.py
@@ -1,13 +1,13 @@
# coding=utf-8
"""
This module adds capabilities to argparse by patching a few of its functions. It also defines a parser
-class called Cmd2ArgParser which improves error and help output over normal argparse. All cmd2 code uses
+class called ArgParser which improves error and help output over normal argparse. All cmd2 code uses
this parser and it is recommended that developers of cmd2-based apps either use it or write their own parser
that inherits from it. This will give a consistent look-and-feel between the help/error output of built-in
cmd2 commands and the app-specific commands.
Since the new capabilities are added by patching at the argparse API level, they are available whether or
-not Cmd2ArgParser is used. However, the help output of Cmd2ArgParser is customized to notate nargs ranges
+not ArgParser is used. However, the help output of ArgParser is customized to notate nargs ranges
whereas any other parser class won't be as explicit in the usage statement.
############################################################################################################
@@ -575,7 +575,7 @@ class Cmd2HelpFormatter(argparse.RawTextHelpFormatter):
# noinspection PyCompatibility
-class Cmd2ArgParser(argparse.ArgumentParser):
+class ArgParser(argparse.ArgumentParser):
"""Custom ArgumentParser class that improves error and help output"""
def __init__(self, *args, **kwargs) -> None: