public void printErrorAndExit(String message){
  LOG.log(Level.SEVERE,message);
  printError(message,false);
  if (!interactive) {
    exit(1);
  }
}

public void printErrorAndExit ( String message ) { LOG . log ( Level . SEVERE , message ) ; printError ( message , false ) ; if ( ! interactive ) { exit ( 1 ) ; } }
print error message and exit with status = 1 if the command is not executing in interactive mode .
