}
}
+
+ // report errors
+ StringBuilder sb = new StringBuilder();
+ for (String error : errors)
+ {
+ sb.append("- " + error);
+ sb.append("\n");
+ }
+ if (Platform.isHeadless())
+ {
+ Console.debug("All errors from command line argument commands:\n"
+ + sb.toString());
+ }
+ else
+ {
+ // scrollable dialog box
+
+ }
+
if (argParser.getBoolean(Arg.QUIT))
{
- Jalview.exit("Exiting due to " + Arg.QUIT.argString(), 0);
+ Jalview.getInstance().exit(
+ "Exiting due to " + Arg.QUIT.argString() + " argument.",
+ ExitCode.OK);
return true;
}
// carry on with jalview.bin.Jalview