#!/usr/bin/env python3
# Copyright (c) 2004-present Facebook All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.

import argparse
from gql_client.compiler.cli import run

if __name__ == "__main__":
    parser = argparse.ArgumentParser()
    parser.add_argument(
        "schema_library", help="the graphql schemas storage path", type=str
    )
    parser.add_argument(
        "graphql_library", help="path where all queries files are stored", type=str
    )
    parser.add_argument(
        "--verify", help="verify compiled files against schema", action="store_true"
    )
    args = parser.parse_args()
    run(args.schema_library, args.graphql_library, args.verify)
