private void buildOptions(Options options){
  OptionBuilder.withArgName(OPTION_HELP);
  OptionBuilder.withLongOpt(OPTION_HELP);
  OptionBuilder.isRequired(false);
  OptionBuilder.withDescription("Print help message and exit.");
  options.addOption(OptionBuilder.create('h'));
  OptionBuilder.withArgName(OPTION_INPUT_JSON);
  OptionBuilder.withLongOpt(OPTION_INPUT_JSON);
  OptionBuilder.isRequired(false);
  OptionBuilder.hasArg();
  OptionBuilder.withDescription("Specify the JSON input file.");
  options.addOption(OptionBuilder.create("j"));
}

private void buildOptions ( Options options ) { OptionBuilder . withArgName ( OPTION_HELP ) ; OptionBuilder . withLongOpt ( OPTION_HELP ) ; OptionBuilder . isRequired ( false ) ; OptionBuilder . withDescription ( "Print help message and exit." ) ; options . addOption ( OptionBuilder . create ( 'h' ) ) ; OptionBuilder . withArgName ( OPTION_INPUT_JSON ) ; OptionBuilder . withLongOpt ( OPTION_INPUT_JSON ) ; OptionBuilder . isRequired ( false ) ; OptionBuilder . hasArg ( ) ; OptionBuilder . withDescription ( "Specify the JSON input file." ) ; options . addOption ( OptionBuilder . create ( "j" ) ) ; }
method for building the allowed options .
