spydra/src/main/java/com/spotify/spydra/submitter/runner/CliHelper.java
public static Option createOption(String optName, String description,
      boolean isRequired, boolean unlimitedArgs) {

    Option.Builder builder = Option.builder()
        .longOpt(optName)
        .hasArg()
        .valueSeparator(',')
        .required(isRequired)
        .desc(description);

    if (unlimitedArgs) {
      builder.hasArgs();
    }

    return builder.build();
  }
/**
   * Small helper for creating some of the long parameter settings we frequently
   * use here.
   *
   * @param optName       name of the parameter/option
   * @param description   description for the help text
   * @param isRequired    whether this parameter is strictly required
   * @param unlimitedArgs whether it supports multiple arguments, default is on argument
   */
Small helper for creating some of the long parameter settings we frequently
use here.

@param optName       name of the parameter/option
@param description   description for the help text
@param isRequired    whether this parameter is strictly required
@param unlimitedArgs whether it supports multiple arguments, default is on argument
Small helper for creating some of the long parameter settings we frequently use here . @param optName name of the parameter / option @param description description for the help text @param isRequired whether this parameter is strictly required @param unlimitedArgs whether it supports multiple arguments default is on argument
public static Option createOption(String optName, String description,
      boolean isRequired, boolean unlimitedArgs) {
    Option.Builder builder = Option.builder()
        .longOpt(optName)
        .hasArg()
        .valueSeparator(',')
        .required(isRequired)
        .desc(description);
    if (unlimitedArgs) {
      builder.hasArgs();
    }
    return builder.build();
  }
public static Option createOption ( String optName , String description , boolean isRequired , boolean unlimitedArgs ) { Option . Builder builder = Option . builder ( ) . longOpt ( optName ) . hasArg ( ) . valueSeparator ( ',' ) . required ( isRequired ) . desc ( description ) ; if ( unlimitedArgs ) { builder . hasArgs ( ) ; } return builder . build ( ) ; }
Small helper for creating some of the long parameter settings we frequently
 use here.
Small helper for creating some of the long parameter settings we frequently use here .