summaryrefslogtreecommitdiff
path: root/tests/test_argparse.py
diff options
context:
space:
mode:
authorTodd Leonhardt <todd.leonhardt@gmail.com>2018-01-15 12:38:48 -0500
committerTodd Leonhardt <todd.leonhardt@gmail.com>2018-01-15 12:38:48 -0500
commit1f18c942fc3babf3c2183fdc2331d405d6810dc8 (patch)
treebd4bc9643d54fd554443b9e3bfdc9f7f70ef14cd /tests/test_argparse.py
parenteee2d621abfb3d6455570b540069a4853a68f8c6 (diff)
downloadcmd2-git-1f18c942fc3babf3c2183fdc2331d405d6810dc8.tar.gz
Renamed new decorator to @with_argparser_and_unknown_args to make it more descriptive
Diffstat (limited to 'tests/test_argparse.py')
-rw-r--r--tests/test_argparse.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_argparse.py b/tests/test_argparse.py
index 49e18d86..b425d63c 100644
--- a/tests/test_argparse.py
+++ b/tests/test_argparse.py
@@ -64,7 +64,7 @@ class ArgparseApp(cmd2.Cmd):
known_parser.add_argument('-p', '--piglatin', action='store_true', help='atinLay')
known_parser.add_argument('-s', '--shout', action='store_true', help='N00B EMULATION MODE')
known_parser.add_argument('-r', '--repeat', type=int, help='output [n] times')
- @cmd2.with_argparser_and_list(known_parser)
+ @cmd2.with_argparser_and_unknown_args(known_parser)
def do_speak(self, args, extra):
"""Repeat what you tell me to."""
words = []