def repl_command(fxn):
@functools.wraps(fxn)<EOL>def wrapper(self, arglist):<EOL><INDENT>"""<STR_LIT>"""<EOL>args = []<EOL>kwargs = {}<EOL>if arglist:<EOL><INDENT>for arg in shlex.split(arglist):<EOL><INDENT>if "<STR_LIT:=>" in arg:<EOL><INDENT>split = arg.split("<STR_LIT:=>", <NUM_LIT:1>)<EOL>kwargs[split[<NUM_LIT:0>]] = split[<NUM_LIT:1>]<EOL><DEDENT>else:<EOL><INDENT>args.append(arg)<EOL><DEDENT><DEDENT><DEDENT>return fxn(self, *args, **kwargs)<EOL><DEDENT>return wrapper<EOL>
Decorator for cmd methods

Parses arguments from the arg string and passes them to the method as *args
and **kwargs.