summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cmd2/constants.py1
-rw-r--r--cmd2/decorators.py3
-rw-r--r--docs/features/argument_processing.rst8
3 files changed, 2 insertions, 10 deletions
diff --git a/cmd2/constants.py b/cmd2/constants.py
index 037a7cab..8aac5857 100644
--- a/cmd2/constants.py
+++ b/cmd2/constants.py
@@ -56,4 +56,3 @@ PARSER_ATTR_COMMANDSET = 'command_set'
# custom attributes added to argparse Namespaces
NS_ATTR_SUBCMD_HANDLER = '__subcmd_handler__'
-NS_ATTR_STATEMENT = '__statement__'
diff --git a/cmd2/decorators.py b/cmd2/decorators.py
index c2689102..d173334d 100644
--- a/cmd2/decorators.py
+++ b/cmd2/decorators.py
@@ -299,9 +299,6 @@ def with_argparser(parser: argparse.ArgumentParser, *,
except SystemExit:
raise Cmd2ArgparseError
else:
- # Add statement to Namespace as __statement__ (this is deprecated and will be removed in 2.0)
- setattr(ns, constants.NS_ATTR_STATEMENT, statement)
-
# Add wrapped statement to Namespace as cmd2_statement
setattr(ns, 'cmd2_statement', Cmd2AttributeWrapper(statement))
diff --git a/docs/features/argument_processing.rst b/docs/features/argument_processing.rst
index 06f48f82..9abd9c65 100644
--- a/docs/features/argument_processing.rst
+++ b/docs/features/argument_processing.rst
@@ -392,11 +392,7 @@ argparse arguments.
- ``cmd2_statement`` - ``cmd2.Cmd2AttributeWrapper`` object containing
``cmd2.Statement`` object that was created when parsing the command line.
-- ``__statement__`` - ``cmd2.Statement`` object that was created when parsing
- the command line. (This is deprecated and will be removed in 2.0.0.) Use
- ``cmd2_statement`` instead.
-
-- ``__subcmd_handler__`` - used by cmd2 to identify the handler for a
- subcommand created with ``@cmd2.as_subcommand_to`` decorator.
- ``cmd2_handler`` - ``cmd2.Cmd2AttributeWrapper`` object containing
a subcommand handler function or ``None`` if one was not set.
+- ``__subcmd_handler__`` - used by cmd2 to identify the handler for a
+ subcommand created with ``@cmd2.as_subcommand_to`` decorator.