From 1a82b37b6c23490b1d9127095e3ee4f2db21a85b Mon Sep 17 00:00:00 2001 From: Eric Lin Date: Tue, 4 Aug 2020 13:46:48 -0400 Subject: Marked with_arparser_and_unknown_args deprecated and consolidated implementation as an option to with_argparser instead. --- examples/python_scripting.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples/python_scripting.py') diff --git a/examples/python_scripting.py b/examples/python_scripting.py index 69cfb672..6e4295d4 100755 --- a/examples/python_scripting.py +++ b/examples/python_scripting.py @@ -96,7 +96,7 @@ class CmdLineApp(cmd2.Cmd): dir_parser = argparse.ArgumentParser() dir_parser.add_argument('-l', '--long', action='store_true', help="display in long format with one item per line") - @cmd2.with_argparser_and_unknown_args(dir_parser) + @cmd2.with_argparser(dir_parser, with_unknown_args=True) def do_dir(self, args, unknown): """List contents of current directory.""" # No arguments for this command -- cgit v1.2.1