From: Ben Soares Date: Thu, 30 Mar 2023 15:25:34 +0000 (+0100) Subject: JAL-629 fix bug for opening single named file with no args X-Git-Tag: Release_2_11_4_0~414 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=50d53d249fbfcc56c87edfd20fe2adadfd7d7841;p=jalview.git JAL-629 fix bug for opening single named file with no args --- diff --git a/src/jalview/bin/argparser/ArgParser.java b/src/jalview/bin/argparser/ArgParser.java index 54f57fe..81ba0cc 100644 --- a/src/jalview/bin/argparser/ArgParser.java +++ b/src/jalview/bin/argparser/ArgParser.java @@ -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()