def add_argument(*args, **kwargs):
def decorator(func):<EOL><INDENT>func = ScriptAdaptor._wrap(func)<EOL>func._add_argument(args, kwargs)<EOL>return func<EOL><DEDENT>return decorator<EOL>
Define an argument for the function when running in console script
mode.  The positional and keyword arguments are the same as for
ArgumentParser.add_argument().