summaryrefslogtreecommitdiff
path: root/examples/decorator_example.py
diff options
context:
space:
mode:
authorKevin Van Brunt <kmvanbrunt@gmail.com>2020-08-27 13:44:24 -0400
committerKevin Van Brunt <kmvanbrunt@gmail.com>2020-08-27 13:44:24 -0400
commite650fc3defd7ddeb32eeadeeddccda370539ce1d (patch)
treea4809c8dcdbc3dcf4e1af624ba0e824f0a7c2861 /examples/decorator_example.py
parent5942f2105eb83140a8ab37e655e2561c4d17d3a2 (diff)
parente3a07c59b541b4a0b937c62ef38be6d8c011c0a3 (diff)
downloadcmd2-git-e650fc3defd7ddeb32eeadeeddccda370539ce1d.tar.gz
Merge branch 'master' into 2.0
Diffstat (limited to 'examples/decorator_example.py')
-rwxr-xr-xexamples/decorator_example.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/decorator_example.py b/examples/decorator_example.py
index 5b721da6..1b6d7570 100755
--- a/examples/decorator_example.py
+++ b/examples/decorator_example.py
@@ -67,7 +67,7 @@ class CmdLineApp(cmd2.Cmd):
def do_tag(self, args: argparse.Namespace):
"""create an html tag"""
# The Namespace always includes the Statement object created when parsing the command line
- statement = args.get_statement()
+ statement = args.cmd2_statement.get()
self.poutput("The command line you ran was: {}".format(statement.command_and_args))
self.poutput("It generated this tag:")