public static Options buildOptions()

in tools/query_verification/src/main/java/com/google/bigquery/Main.java [149:180]


    public static Options buildOptions() {
        Options options = new Options();

        options.addOption(Option.builder("q")
                .required(true)
                .longOpt("query")
                .numberOfArgs(Option.UNLIMITED_VALUES) // Allows for 2 arguments without both being required
                .valueSeparator(' ')
                .argName("PATH> <PATH") // Appears as "<PATH> <PATH>"
                .desc("First argument is the path to the migrated query file. Second argument is the path to the original query file and only required when data is provided.")
                .build());
        options.addOption(Option.builder("s")
                .longOpt("schema")
                .numberOfArgs(Option.UNLIMITED_VALUES) // Allows for 2 arguments without both being required
                .valueSeparator(' ')
                .argName("PATH> <PATH") // Appears as "<PATH> <PATH>"
                .desc("First argument is the path to the migrated schema path. Second argument is the path to the original schema query and is optional. Referenced files should be DDL statements or in JSON format.")
                .build());
        options.addOption(Option.builder("d")
                .longOpt("data")
                .numberOfArgs(Option.UNLIMITED_VALUES)
                .valueSeparator(' ')
                .argName("PATHS")
                .desc("Paths for table data in CSV format. File names should be formatted as \"[dataset].[table].csv\".")
                .build());
        options.addOption(Option.builder("h")
                .longOpt("help")
                .desc("Print this help screen.")
                .build());

        return options;
    }