protected void parseOptions(CommandLine commandLine){
  JetstreamApplicationInformation ai=getApplicationInformation();
  if (commandLine.hasOption('b')) {
    ai.setBeans(commandLine.getOptionValues('b'));
  }
  if (commandLine.hasOption('c')) {
    ai.setConfigRoots(commandLine.getOptionValues('c'));
  }
  if (commandLine.hasOption("cv")) {
    ai.setConfigVersion(commandLine.getOptionValue("cv"));
  }
  if (commandLine.hasOption('n')) {
    ai.setApplicationName(commandLine.getOptionValue('n'));
  }
  if (commandLine.hasOption('p')) {
    ai.setManagementPort(Integer.valueOf(commandLine.getOptionValue('p')));
    System.setProperty("jetty_port",commandLine.getOptionValue('p'));
  }
 else {
    System.setProperty("jetty_port",String.valueOf(9999));
  }
  if (commandLine.hasOption('z')) {
    ai.setZone(commandLine.getOptionValue('z'));
  }
  if (commandLine.hasOption("nd")) {
    ai.useDNS(false);
  }
  if (commandLine.hasOption("wqz")) {
    ai.setWorkQueueSz(Integer.valueOf(commandLine.getOptionValue("wqz")));
  }
  if (commandLine.hasOption("wt")) {
    ai.setWorkerThreads(Integer.valueOf(commandLine.getOptionValue("wt")));
  }
}

protected void parseOptions ( CommandLine commandLine ) { JetstreamApplicationInformation ai = getApplicationInformation ( ) ; if ( commandLine . hasOption ( 'b' ) ) { ai . setBeans ( commandLine . getOptionValues ( 'b' ) ) ; } if ( commandLine . hasOption ( 'c' ) ) { ai . setConfigRoots ( commandLine . getOptionValues ( 'c' ) ) ; } if ( commandLine . hasOption ( "cv" ) ) { ai . setConfigVersion ( commandLine . getOptionValue ( "cv" ) ) ; } if ( commandLine . hasOption ( 'n' ) ) { ai . setApplicationName ( commandLine . getOptionValue ( 'n' ) ) ; } if ( commandLine . hasOption ( 'p' ) ) { ai . setManagementPort ( Integer . valueOf ( commandLine . getOptionValue ( 'p' ) ) ) ; System . setProperty ( "jetty_port" , commandLine . getOptionValue ( 'p' ) ) ; } else { System . setProperty ( "jetty_port" , String . valueOf ( 9999 ) ) ; } if ( commandLine . hasOption ( 'z' ) ) { ai . setZone ( commandLine . getOptionValue ( 'z' ) ) ; } if ( commandLine . hasOption ( "nd" ) ) { ai . useDNS ( false ) ; } if ( commandLine . hasOption ( "wqz" ) ) { ai . setWorkQueueSz ( Integer . valueOf ( commandLine . getOptionValue ( "wqz" ) ) ) ; } if ( commandLine . hasOption ( "wt" ) ) { ai . setWorkerThreads ( Integer . valueOf ( commandLine . getOptionValue ( "wt" ) ) ) ; } }
parse the options given on the command line . this method may be overridden for application specific command line option handling .
