summaryrefslogtreecommitdiff
path: root/cmd2.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 /cmd2.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 'cmd2.py')
-rwxr-xr-xcmd2.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd2.py b/cmd2.py
index ccb1c213..84710eca 100755
--- a/cmd2.py
+++ b/cmd2.py
@@ -271,7 +271,7 @@ def with_argument_list(func):
return cmd_wrapper
-def with_argparser_and_list(argparser):
+def with_argparser_and_unknown_args(argparser):
"""A decorator to alter a cmd2 method to populate its ``args``
argument by parsing arguments with the given instance of
argparse.ArgumentParser, but also returning unknown args as a list.