public static Options createOptions()

in tools/automatic_query_fixer/src/main/java/com/google/cloud/bigquery/utils/queryfixer/cmd/QueryFixerOptions.java [60:99]


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

    Option option =
        new Option(
            /*opt=*/ CREDENTIALS_SHORTCUT,
            /*long-opt=*/ CREDENTIALS,
            /*hasArg=*/ true,
            /*description=*/ "The path to the credential file of the service account connecting to BigQuery. Otherwise, the default application-login credential will be used.");
    options.addOption(option);
    option =
        new Option(
            /*opt=*/ PROJECT_ID_SHORTCUT,
            /*long-opt=*/ PROJECT_ID,
            /*hasArg=*/ true,
            /*description=*/ "The ID of project where queries will be performed. This field is required if the project is not specified in credential");
    options.addOption(option);
    option =
        new Option(
            /*opt=*/ OUTPUT_SHORTCUT,
            /*long-opt=*/ OUTPUT,
            /*hasArg=*/ true,
            /*description=*/ "The format to output fix results. The available formats are \"natural\" (default) and \"json\"");
    options.addOption(option);
    option =
        new Option(
            /*opt=*/ MODE_SHORTCUT,
            /*long-opt=*/ MODE,
            /*hasArg=*/ true,
            /*description=*/ "Interactive Mode. The available mode are \"auto\" (default), \"ua/user-assistance\" and \"sg/suggestion\". Please see the README file for the detailed description.");
    options.addOption(option);
    option =
        new Option(
            /*opt=*/ QUERY_FILE_SHORTCUT,
            /*long-opt=*/ QUERY_FILE,
            /*hasArg=*/ true,
            /*description=*/ "The directory of the query file. If query has been provided as an argument, this will be ignored.");
    options.addOption(option);
    return options;
  }