code: public static Option[] getCommonOptions() {
      return new Option[] {
        Option.builder()
                .hasArg()
                .required(false)
                .desc("Batch interval (seconds) for streaming applications; default is 1 second")
                .longOpt("batchInterval")
                .build(),
        Option.builder()
                .hasArg()
                .required(false)
                .desc("The master URL to connect to, such as \"local\" to run locally with one thread, \"local[4]\" to run locally with 4 cores, or \"spark://master:7077\" to run on a Spark standalone cluster.")
                .longOpt("master")
                .build(),
        Option.builder()
                .hasArg()
                .required(false)
                .desc("Address of the Zookeeper ensemble; defaults to: localhost:9983")
                .longOpt("zkHost")
                .build(),
        Option.builder()
                .hasArg()
                .required(false)
                .desc("Name of collection; no default")
                .longOpt("collection")
                .build(),
        Option.builder()
                .hasArg()
                .required(false)
                .desc("Number of docs to queue up on the client before sending to Solr; default is 10")
                .longOpt("batchSize")
                .build(),
        Option.builder()
                .hasArg()
                .required(false)
                .desc("For authenticating to Solr using JAAS, sets the '" + LOGIN_CONFIG_PROP + "' system property.")
                .longOpt("solrJaasAuthConfig")
                .build(),
        Option.builder()
                .hasArg()
                .required(false)
                .desc("For authenticating to Solr using JAAS, sets the 'solr.kerberos.jaas.appname' system property; default is Client")
                .longOpt("solrJaasAppName")
                .build()
      };
    }
docs: Support options common to all tools.