def MakeParser(prog):
def AddStandardOptions(parser, *args):<EOL><INDENT>"""<STR_LIT>"""<EOL>if '<STR_LIT>' in args:<EOL><INDENT>parser.add_argument('<STR_LIT>', '<STR_LIT>', default='<STR_LIT:.>',<EOL>help='<STR_LIT>')<EOL><DEDENT>if '<STR_LIT>' in args:<EOL><INDENT>parser.add_argument('<STR_LIT>', '<STR_LIT>', default='<STR_LIT>',<EOL>choices=['<STR_LIT>'],<EOL>help='<STR_LIT>')<EOL><DEDENT>if '<STR_LIT>' in args:<EOL><INDENT>help_text = ('<STR_LIT>'<EOL>'<STR_LIT>')<EOL>parser.add_argument('<STR_LIT>', help=help_text)<EOL><DEDENT>if '<STR_LIT>' in args:<EOL><INDENT>parser.add_argument('<STR_LIT>', '<STR_LIT>', default='<STR_LIT:.>',<EOL>help='<STR_LIT>')<EOL><DEDENT>if '<STR_LIT>' in args:<EOL><INDENT>parser.add_argument('<STR_LIT>',<EOL>help='<STR_LIT>')<EOL><DEDENT>if '<STR_LIT>' in args:<EOL><INDENT>parser.add_argument('<STR_LIT>', nargs='<STR_LIT:+>',<EOL>help='<STR_LIT>')<EOL><DEDENT>if '<STR_LIT>' in args:<EOL><INDENT>parser.add_argument('<STR_LIT>', nargs=<NUM_LIT:1>,<EOL>help='<STR_LIT>')<EOL><DEDENT>if '<STR_LIT>' in args:<EOL><INDENT>parser.add_argument('<STR_LIT>', '<STR_LIT>', default='<STR_LIT:default>',<EOL>help='<STR_LIT>')<EOL><DEDENT><DEDENT>parser = _EndpointsParser(prog=prog)<EOL>subparsers = parser.add_subparsers(<EOL>title='<STR_LIT>', metavar='<STR_LIT>' % '<STR_LIT:U+002CU+0020>'.join(_VISIBLE_COMMANDS))<EOL>get_client_lib = subparsers.add_parser(<EOL>'<STR_LIT>', help=('<STR_LIT>'<EOL>'<STR_LIT>'))<EOL>get_client_lib.set_defaults(callback=_GetClientLibCallback)<EOL>AddStandardOptions(get_client_lib, '<STR_LIT>', '<STR_LIT>', '<STR_LIT>',<EOL>'<STR_LIT>', '<STR_LIT>', '<STR_LIT>')<EOL>get_discovery_doc = subparsers.add_parser(<EOL>'<STR_LIT>',<EOL>help='<STR_LIT>')<EOL>get_discovery_doc.set_defaults(callback=_GenDiscoveryDocCallback)<EOL>AddStandardOptions(get_discovery_doc, '<STR_LIT>', '<STR_LIT>', '<STR_LIT>',<EOL>'<STR_LIT>', '<STR_LIT>')<EOL>get_openapi_spec = subparsers.add_parser(<EOL>'<STR_LIT>',<EOL>help='<STR_LIT>')<EOL>get_openapi_spec.set_defaults(callback=_GenOpenApiSpecCallback)<EOL>AddStandardOptions(get_openapi_spec, '<STR_LIT>', '<STR_LIT>', '<STR_LIT>',<EOL>'<STR_LIT>')<EOL>get_openapi_spec.add_argument('<STR_LIT>', action='<STR_LIT:store_true>',<EOL>help="<STR_LIT>")<EOL>get_swagger_spec = subparsers.add_parser(<EOL>'<STR_LIT>',<EOL>help='<STR_LIT>')<EOL>get_swagger_spec.set_defaults(callback=_GenOpenApiSpecCallback)<EOL>AddStandardOptions(get_swagger_spec, '<STR_LIT>', '<STR_LIT>', '<STR_LIT>',<EOL>'<STR_LIT>')<EOL>gen_api_config = subparsers.add_parser('<STR_LIT>')<EOL>gen_api_config.set_defaults(callback=_GenApiConfigCallback)<EOL>AddStandardOptions(gen_api_config, '<STR_LIT>', '<STR_LIT>', '<STR_LIT>',<EOL>'<STR_LIT>')<EOL>gen_discovery_doc = subparsers.add_parser('<STR_LIT>')<EOL>gen_discovery_doc.set_defaults(callback=_GenDiscoveryDocCallback)<EOL>AddStandardOptions(gen_discovery_doc, '<STR_LIT>', '<STR_LIT>', '<STR_LIT>',<EOL>'<STR_LIT>', '<STR_LIT>')<EOL>gen_client_lib = subparsers.add_parser('<STR_LIT>')<EOL>gen_client_lib.set_defaults(callback=_GenClientLibCallback)<EOL>AddStandardOptions(gen_client_lib, '<STR_LIT>', '<STR_LIT>', '<STR_LIT>',<EOL>'<STR_LIT>')<EOL>return parser<EOL>
Create an argument parser.

    Args:
      prog: The name of the program to use when outputting help text.

    Returns:
      An argparse.ArgumentParser built to specification.