diff options
author | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2020-08-25 11:25:00 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-25 11:25:00 -0400 |
commit | ae7e67c20217baaa17e6d182a3fd33b9e8c982e8 (patch) | |
tree | b8cfbaca2ec4622a981d96c33c7a964ca621108e /examples/decorator_example.py | |
parent | a540cfc5373cee2272de6c81be8b6fa8a78c6462 (diff) | |
parent | 9b5a98825a9b00807a40494e8c634c392077ccd2 (diff) | |
download | cmd2-git-ae7e67c20217baaa17e6d182a3fd33b9e8c982e8.tar.gz |
Merge pull request #984 from python-cmd2/recursion_error
Fixed RecursionError when printing an argparse.Namespace
Diffstat (limited to 'examples/decorator_example.py')
-rwxr-xr-x | examples/decorator_example.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/decorator_example.py b/examples/decorator_example.py index 0f5374ce..5b721da6 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.__statement__ + statement = args.get_statement() self.poutput("The command line you ran was: {}".format(statement.command_and_args)) self.poutput("It generated this tag:") |