def main():
    # TODO Make the docker image the default, add --local option
    parser = argparse.ArgumentParser(description='Batch generate all APIs.')
    parser.add_argument('googleapis', help='The path to the googleapis repo')
    parser.add_argument('discovery_repo',
                        help='The path to the discovery-artifact-manager repo')
    args = parser.parse_args()

    generate_api.dump_versions(googleapis=args.googleapis,
                               discovery_repo=args.discovery_repo)

    run_gapic_gen(args.googleapis)
    run_discogapic_gen(args.discovery_repo)
def main():
    verify_protoc_version()
    # TODO Make the docker image the default, add --local option
    parser = argparse.ArgumentParser(description='Batch generate all APIs.')
    parser.add_argument('googleapis', help='The path to the googleapis repo')
    parser.add_argument('discovery_repo',
                        help='The path to the discovery-artifact-manager repo')
    args = parser.parse_args()

    generate_api.dump_versions(googleapis=args.googleapis, discovery_repo=args.discovery_repo)

    run_gapic_gen(args.googleapis)
    run_discogapic_gen(args.discovery_repo)