From 478ea83336a4d1659ad06ef365db3dc5e051e46d Mon Sep 17 00:00:00 2001 From: Kevin Van Brunt Date: Tue, 25 Aug 2020 16:11:49 -0400 Subject: The functions cmd2 adds to Namespaces (get_statement() and get_handler()) are now Cmd2AttributeWrapper objects named cmd2_statement and cmd2_handler. This makes it easy to filter out which attributes in an argparse.Namespace were added by cmd2. --- cmd2/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cmd2/__init__.py') diff --git a/cmd2/__init__.py b/cmd2/__init__.py index 9f0bb176..81e80efe 100644 --- a/cmd2/__init__.py +++ b/cmd2/__init__.py @@ -16,7 +16,7 @@ except importlib_metadata.PackageNotFoundError: # pragma: no cover pass from .ansi import style, fg, bg -from .argparse_custom import Cmd2ArgumentParser, CompletionItem, set_default_argument_parser +from .argparse_custom import Cmd2ArgumentParser, Cmd2AttributeWrapper, CompletionItem, set_default_argument_parser # Check if user has defined a module that sets a custom value for argparse_custom.DEFAULT_ARGUMENT_PARSER import argparse -- cgit v1.2.1