private static void exit(String errMsg,Options options,int exitCode){
  if (errMsg != null)   echo("ERROR: " + errMsg);
  String runner=System.getProperty(IGNITE_PROG_NAME,"randignite.{sh|bat}");
  int space=runner.indexOf(' ');
  runner=runner.substring(0,space == -1 ? runner.length() : space);
  if (options != null) {
    HelpFormatter formatter=new HelpFormatter();
    formatter.printHelp(runner,options);
  }
  System.exit(exitCode);
}

private static void exit ( String errMsg , Options options , int exitCode ) { if ( errMsg != null ) echo ( "ERROR: " + errMsg ) ; String runner = System . getProperty ( IGNITE_PROG_NAME , "randignite.{sh|bat}" ) ; int space = runner . indexOf ( ' ' ) ; runner = runner . substring ( 0 , space == - 1 ? runner . length ( ) : space ) ; if ( options != null ) { HelpFormatter formatter = new HelpFormatter ( ) ; formatter . printHelp ( runner , options ) ; } System . exit ( exitCode ) ; }
exists with optional error message , usage show and exit code .
