JAL-629 fix bug for opening single named file with no args
authorBen Soares <b.soares@dundee.ac.uk>
Thu, 30 Mar 2023 15:25:34 +0000 (16:25 +0100)
committerBen Soares <b.soares@dundee.ac.uk>
Thu, 30 Mar 2023 15:25:34 +0000 (16:25 +0100)
src/jalview/bin/argparser/ArgParser.java

index 54f57fe..81ba0cc 100644 (file)
@@ -252,7 +252,7 @@ public class ArgParser
           {
             // There is no "=" so value is next arg or args (possibly shell
             // glob-expanded)
-            if (i + 1 >= args.size())
+            if ((openEachInitialFilenames ? i : i + 1) >= args.size())
             {
               // no value to take for arg, which wants a value
               Console.error("Argument '" + a.getName()