def command(name):
<EOL>def wrapper(func):<EOL><INDENT>title, description = _parse_doc(func.__doc__)<EOL>command = Command(name=name, title=title, description=description)<EOL>command.add_handler(func)<EOL>argparse_args_list = getattr(func, '<STR_LIT>', [])<EOL>for args, kwargs in argparse_args_list:<EOL><INDENT>command.add_argument_tuple((args, kwargs))<EOL><DEDENT>return command<EOL><DEDENT>return wrapper<EOL>
Create a command, using the wrapped function as the handler.

    Args
    ----
    name : str
        Name given to the created Command instance.

    Returns
    -------
    Command
        A new instance of Command, with handler set to the wrapped function.