diff options
Diffstat (limited to 'isolated_tests/test_commandset/test_commandset.py')
-rw-r--r-- | isolated_tests/test_commandset/test_commandset.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/isolated_tests/test_commandset/test_commandset.py b/isolated_tests/test_commandset/test_commandset.py index 90f0448c..83ae4646 100644 --- a/isolated_tests/test_commandset/test_commandset.py +++ b/isolated_tests/test_commandset/test_commandset.py @@ -28,7 +28,7 @@ class CommandSetA(cmd2.CommandSet): cranberry_parser = cmd2.Cmd2ArgumentParser('cranberry') cranberry_parser.add_argument('arg1', choices=['lemonade', 'juice', 'sauce']) - @cmd2.with_argparser_and_unknown_args(cranberry_parser) + @cmd2.with_argparser(cranberry_parser, with_unknown_args=True) def do_cranberry(self, cmd: cmd2.Cmd, ns: argparse.Namespace, unknown: List[str]): cmd.poutput('Cranberry {}!!'.format(ns.arg1)) if unknown and len(unknown): |