git://source.jalview.org
/
jalview.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
924e301
)
JAL-629 fix bug for opening single named file with no args
author
Ben Soares
<b.soares@dundee.ac.uk>
Thu, 30 Mar 2023 15:25:34 +0000
(16:25 +0100)
committer
Ben Soares
<b.soares@dundee.ac.uk>
Thu, 30 Mar 2023 15:25:34 +0000
(16:25 +0100)
src/jalview/bin/argparser/ArgParser.java
patch
|
blob
|
history
diff --git
a/src/jalview/bin/argparser/ArgParser.java
b/src/jalview/bin/argparser/ArgParser.java
index
54f57fe
..
81ba0cc
100644
(file)
--- 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()