JAL-4290 incorrect usage of main()
authorBen Soares <b.soares@dundee.ac.uk>
Mon, 18 Dec 2023 13:58:15 +0000 (13:58 +0000)
committerBen Soares <b.soares@dundee.ac.uk>
Mon, 18 Dec 2023 13:58:15 +0000 (13:58 +0000)
src/jalview/bin/Commands.java

index 5f723c1..a72da0d 100644 (file)
@@ -179,8 +179,7 @@ public class Commands
 
     if (argParser.getBoolean(Arg.QUIT))
     {
-      Jalview.getInstance().exit(
-              "Exiting due to " + Arg.QUIT.argString() + " argument.",
+      Jalview.exit("Exiting due to " + Arg.QUIT.argString() + " argument.",
               ExitCode.OK);
       return true;
     }