JAL-629 fix bug for opening single named file with no args
[jalview.git] / 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()