JAL-629 don’t carry on Jalview.main if we’ve already processed command line args...
[jalview.git] / src / jalview / bin / Jalview.java
index 1f01125..6238c7d 100755 (executable)
@@ -565,7 +565,10 @@ public class Jalview
 
     if (argparser.isSet(Arg.HEADLESS))
       headless = argparser.getBool(Arg.HEADLESS);
-    Commands.processArgs(argparser, headless);
+    if (Commands.processArgs(argparser, headless))
+    {
+      System.exit(1);
+    }
 
     String file = null, data = null;
     FileFormatI format = null;