JAL-629 Added --opennew --nonews --nosplash. Added java globbing for = e.g. --open...
[jalview.git] / src / jalview / bin / Commands.java
index 43dc1fd..e92ee61 100644 (file)
@@ -159,7 +159,7 @@ public class Commands
     FileFormatI format = null;
     DataSourceType protocol = null;
     */
-    if (avm.containsArg(Arg.OPEN))
+    if (avm.containsArg(Arg.OPEN) || avm.containsArg(Arg.OPENNEW))
     {
       commandArgsProvided = true;
       long progress = -1;
@@ -167,6 +167,8 @@ public class Commands
       boolean first = true;
       boolean progressBarSet = false;
       AlignFrame af;
+      // Combine the OPEN and OPENNEW files into one list, along with whether it
+      // was OPEN or OPENNEW
       List<Entry<Arg, ArgValue>> openAvList = new ArrayList<>();
       avm.getArgValueList(Arg.OPEN).stream()
               .forEachOrdered(av -> openAvList.add(