diff options
author | Todd Leonhardt <todd.leonhardt@gmail.com> | 2018-01-15 12:38:48 -0500 |
---|---|---|
committer | Todd Leonhardt <todd.leonhardt@gmail.com> | 2018-01-15 12:38:48 -0500 |
commit | 1f18c942fc3babf3c2183fdc2331d405d6810dc8 (patch) | |
tree | bd4bc9643d54fd554443b9e3bfdc9f7f70ef14cd /cmd2.py | |
parent | eee2d621abfb3d6455570b540069a4853a68f8c6 (diff) | |
download | cmd2-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-x | cmd2.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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. |