human
Complete this python program:
def MakeParser(prog):
assistant
#Here is the Python code you requested.

    """Create an argument parser.
    Args:
    prog: The name of the program to use when outputting help text.
    Returns:
    An argparse.ArgumentParser built to specification.
    """
    import argparse
    def AddStandardOptions(parser, *args):
        'Add    common    endpoints    options    to    a    parser.\n\n                Args:\n                        parser:    The    parser    to    add    options    to.\n                        *args:    A    list    of    option    names    to    add.    Possible    names    are:    application,\n                                format,    output,    language,    service,    and    discovery_doc.\n                '
        if ('application' in args):
            parser.add_argument('-a', '--application', default='.', help='The    path    to    the    Python    App    Engine    App')
        if ('format' in args):
            parser.add_argument('-f', '--format', default='rest', choices=['rest', 'rpc'], help='The    requested    API    protocol    type')
        if ('hostname' in args):
            help_text = 'Default    application    hostname,    if    none    is    specified    for    API    service.'
            parser.add_argument('--hostname', help=help_text)
        if ('output' in args):
            parser.add_argument('-o', '--output', default='.', help='The    directory    to    store    output    files')
        if ('language' in args):
            parser.add_argument('language', choices=['java'], help='The    target    output    programming    language')
        if ('service' in args):
            parser.add_argument('service', nargs='+', help='Fully    qualified    service    class    name')
        if ('discovery_doc' in args):
            parser.add_argument('discovery_doc', nargs=1, help='Path    to    the    discovery    document')
    parser = argparse.ArgumentParser(prog=prog)
    subparsers = parser.add_subparsers(title='subcommands')
    get_client_lib = subparsers.add_parser('get_client_lib', help='Generates    discovery    documents    and    client    libraries    from    service    classes')
    get_client_lib.set_defaults(callback=_GetClientLibCallback)
    AddStandardOptions(get_client_lib, 'application', 'format',...