if (errorMessage != null) {
System.err.println("Error: " + errorMessage);
}
printUsage(true);
}
<BUG>protected void printUsage(boolean error) {
PrintWriter pw = error ? new PrintWriter(System.err) : new PrintWriter(System.out);</BUG>
pw.println("Options:\n");
HelpFormatter formatter = new HelpFormatter();
formatter.printOptions(pw, 100, options, 0, 10);

if (errorMessage != null) {
System.err.println("Error: " + errorMessage);
}
printUsage(true);
}
protected void printUsage(boolean error) {
printUsageTop(error);
PrintWriter pw = error ? new PrintWriter(System.err) : new PrintWriter(System.out);
pw.println("Options:\n");
HelpFormatter formatter = new HelpFormatter();
formatter.printOptions(pw, 100, options, 0, 10);
