summaryrefslogtreecommitdiff
path: root/cmd2.py
diff options
context:
space:
mode:
authorkotfu <kotfu@kotfu.net>2018-01-12 21:07:44 -0700
committerkotfu <kotfu@kotfu.net>2018-01-12 21:07:44 -0700
commit19c0586b45204ac264038ce23da89858aefda46f (patch)
treee8d1375c3a00f19e5d6c86669cd65b10c25b3530 /cmd2.py
parent6895dea2e19210093e38fa411ef28dfb7f99c32c (diff)
downloadcmd2-git-19c0586b45204ac264038ce23da89858aefda46f.tar.gz
@with_argument_parser now passes an arglist instead of a string
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 7540bd00..a660b348 100755
--- a/cmd2.py
+++ b/cmd2.py
@@ -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