def argument(*args, **kwargs):
def decorator(f):<EOL><INDENT>if not hasattr(f, '<STR_LIT>'):<EOL><INDENT>f._arguments = []<EOL><DEDENT>if not hasattr(f, '<STR_LIT>'):<EOL><INDENT>f._argnames = []<EOL><DEDENT>f._arguments.append((args, kwargs))<EOL>f._argnames.append(_get_dest(*args, **kwargs))<EOL>return f<EOL><DEDENT>return decorator<EOL>
Decorator to define an argparse option or argument.

    The arguments to this decorator are the same as the
    `ArgumentParser.add_argument <https://docs.python.org/3/library/\
argparse.html#the-add-argument-method>`_
    method.