diff options
author | kotfu <kotfu@kotfu.net> | 2018-01-12 21:07:44 -0700 |
---|---|---|
committer | kotfu <kotfu@kotfu.net> | 2018-01-12 21:07:44 -0700 |
commit | 19c0586b45204ac264038ce23da89858aefda46f (patch) | |
tree | e8d1375c3a00f19e5d6c86669cd65b10c25b3530 /cmd2.py | |
parent | 6895dea2e19210093e38fa411ef28dfb7f99c32c (diff) | |
download | cmd2-git-19c0586b45204ac264038ce23da89858aefda46f.tar.gz |
@with_argument_parser now passes an arglist instead of a string
Diffstat (limited to 'cmd2.py')
-rwxr-xr-x | cmd2.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -258,7 +258,7 @@ def with_argument_parser(argparser): temp_arglist.append(strip_quotes(arg)) lexed_arglist = temp_arglist opts = argparser.parse_args(lexed_arglist) - func(instance, cmdline, opts) + func(instance, lexed_arglist, opts) # argparser defaults the program name to sys.argv[0] # we want it to be the name of our command |