diff options
author | Eric Lin <anselor@gmail.com> | 2020-08-04 13:46:48 -0400 |
---|---|---|
committer | anselor <anselor@gmail.com> | 2020-08-04 15:24:53 -0400 |
commit | 1a82b37b6c23490b1d9127095e3ee4f2db21a85b (patch) | |
tree | eb45b08c177ec9d032436af5d158a0ad065dc967 /tests/test_cmd2.py | |
parent | c983abaa881a3ac6110a90194def660489b2d5cc (diff) | |
download | cmd2-git-1a82b37b6c23490b1d9127095e3ee4f2db21a85b.tar.gz |
Marked with_arparser_and_unknown_args deprecated and consolidated
implementation as an option to with_argparser instead.
Diffstat (limited to 'tests/test_cmd2.py')
-rwxr-xr-x | tests/test_cmd2.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_cmd2.py b/tests/test_cmd2.py index bc0e0a94..8688e124 100755 --- a/tests/test_cmd2.py +++ b/tests/test_cmd2.py @@ -1224,7 +1224,7 @@ def test_select_ctrl_c(outsim_app, monkeypatch, capsys): class HelpNoDocstringApp(cmd2.Cmd): greet_parser = argparse.ArgumentParser() greet_parser.add_argument('-s', '--shout', action="store_true", help="N00B EMULATION MODE") - @cmd2.with_argparser_and_unknown_args(greet_parser) + @cmd2.with_argparser(greet_parser, with_unknown_args=True) def do_greet(self, opts, arg): arg = ''.join(arg) if opts.shout: @@ -1268,7 +1268,7 @@ class MultilineApp(cmd2.Cmd): orate_parser = argparse.ArgumentParser() orate_parser.add_argument('-s', '--shout', action="store_true", help="N00B EMULATION MODE") - @cmd2.with_argparser_and_unknown_args(orate_parser) + @cmd2.with_argparser(orate_parser, with_unknown_args=True) def do_orate(self, opts, arg): arg = ''.join(arg) if opts.shout: |