public void printErrorAndExit(String msg) {
    if (helpOptionsEnabled && firstHelpOptionName() != null) {
      msg += "\nUse " + firstHelpOptionName() + " for help information";
    }
    if (printStream != null) {
      printStream.println(msg);
    }
    System.exit(1);
  }