From cb55f0bbf08a48530dcc06c0c1f5c7caafb1bab4 Mon Sep 17 00:00:00 2001 From: Kevin Van Brunt Date: Sun, 24 Nov 2019 22:21:34 -0500 Subject: Added documentation --- cmd2/argparse_custom.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'cmd2') diff --git a/cmd2/argparse_custom.py b/cmd2/argparse_custom.py index c6aa6550..f8a9ec60 100644 --- a/cmd2/argparse_custom.py +++ b/cmd2/argparse_custom.py @@ -4,7 +4,8 @@ This module adds capabilities to argparse by patching a few of its functions. It class called Cmd2ArgumentParser 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. +cmd2 commands and the app-specific commands. If you wish to override the parser used by cmd2's built-in +commands, see override_parser.py example. Since the new capabilities are added by patching at the argparse API level, they are available whether or not Cmd2ArgumentParser is used. However, the help and error output of Cmd2ArgumentParser is customized to notate -- cgit v1.2.1