def help(*args):
    """Prints help."""
    from . import commands
    parser = argparse.ArgumentParser(prog="%s %s" % (__package__, help.__name__), description=help.__doc__)
    parser.add_argument('COMMAND', help="command to show help for", nargs="?", choices=__all__)
    args = parser.parse_args(args)
    if args.COMMAND:
        for l in getattr(commands, args.COMMAND)('-h'):
            yield l
    else:
        parser.parse_args(['-h'])
def help ( * args ) : from . import commands parser = argparse . ArgumentParser ( prog = "%s %s" % ( __package__ , help . __name__ ) , description = help . __doc__ ) parser . add_argument ( 'COMMAND' , help = "command to show help for" , nargs = "?" , choices = __all__ ) args = parser . parse_args ( args ) if args . COMMAND : for l in getattr ( commands , args . COMMAND ) ( '-h' ) : yield l else : parser . parse_args ( [ '-h' ] )
Prints help.