@@ -380,7 +380,7 @@ def with_argument_list(func):
380380 @functools .wraps (func )
381381 def cmd_wrapper (self , cmdline ):
382382 lexed_arglist = parse_quoted_string (cmdline )
383- func (self , lexed_arglist )
383+ return func (self , lexed_arglist )
384384
385385 cmd_wrapper .__doc__ = func .__doc__
386386 return cmd_wrapper
@@ -400,7 +400,7 @@ def arg_decorator(func):
400400 def cmd_wrapper (instance , cmdline ):
401401 lexed_arglist = parse_quoted_string (cmdline )
402402 args , unknown = argparser .parse_known_args (lexed_arglist )
403- func (instance , args , unknown )
403+ return func (instance , args , unknown )
404404
405405 # argparser defaults the program name to sys.argv[0]
406406 # we want it to be the name of our command
@@ -442,7 +442,7 @@ def arg_decorator(func):
442442 def cmd_wrapper (instance , cmdline ):
443443 lexed_arglist = parse_quoted_string (cmdline )
444444 args = argparser .parse_args (lexed_arglist )
445- func (instance , args )
445+ return func (instance , args )
446446
447447 # argparser defaults the program name to sys.argv[0]
448448 # we want it to be the name of our command
0 commit comments