public DistributedTestCLI(String[] args){
  cliOptions=createOptions();
  try {
    CommandLineParser parser=new GnuParser();
    commandLine=parser.parse(cliOptions,args,true);
    if (hasOption("h")) {
      printHelp();
      System.exit(1);
    }
    if (!hasOption("j")) {
      logger.info("The full path of the jar file must be set with -j");
      System.exit(1);
    }
  }
 catch (  Exception e) {
    e.printStackTrace();
    System.exit(1);
  }
}

public DistributedTestCLI ( String [ ] args ) { cliOptions = createOptions ( ) ; try { CommandLineParser parser = new GnuParser ( ) ; commandLine = parser . parse ( cliOptions , args , true ) ; if ( hasOption ( "h" ) ) { printHelp ( ) ; System . exit ( 1 ) ; } if ( ! hasOption ( "j" ) ) { logger . info ( "The full path of the jar file must be set with -j" ) ; System . exit ( 1 ) ; } } catch ( Exception e ) { e . printStackTrace ( ) ; System . exit ( 1 ) ; } }
create and parse allowable options
