From 19c0586b45204ac264038ce23da89858aefda46f Mon Sep 17 00:00:00 2001 From: kotfu Date: Fri, 12 Jan 2018 21:07:44 -0700 Subject: @with_argument_parser now passes an arglist instead of a string --- cmd2.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cmd2.py') 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 -- cgit v1.2.1