- Console.warn(
- "Completed " + Arg.HEADLESS.getName() + " commands, but "
- + Arg.NOQUIT + " is set so not quitting!");
- }
- else
- {
- Jalview.exit("Successfully completed commands in headless mode",
- ExitCode.OK);
+ if (argparser.getBoolean(Arg.NOQUIT))
+ {
+ Console.warn("Completed " + Arg.HEADLESS.getName()
+ + " commands, but " + Arg.NOQUIT
+ + " is set so not quitting!");
+ }
+ else
+ {
+ Jalview.exit("Successfully completed commands in headless mode",
+ ExitCode.OK);
+ }