JAL-629 don’t complain for Unary args
authorJames Procter <j.procter@dundee.ac.uk>
Tue, 24 Jan 2023 07:46:53 +0000 (07:46 +0000)
committerJames Procter <j.procter@dundee.ac.uk>
Tue, 24 Jan 2023 07:46:53 +0000 (07:46 +0000)
src/jalview/bin/ArgParser.java

index 4d37847..877a7f6 100644 (file)
@@ -605,7 +605,7 @@ public class ArgParser
 
   public boolean getBool(Arg a)
   {
-    if (!a.hasOption(Opt.BOOLEAN))
+    if (!a.hasOption(Opt.BOOLEAN) && !a.hasOption(Opt.UNARY))
     {
       Console.warn("Getting boolean from non boolean Arg '" + a.getName()
               + "'.");