JAL-629 Attempts to add PAE to structure. --headless working. Make HTML output single...
[jalview.git] / src / jalview / bin / ArgParser.java
index 0697193..4cdfd19 100644 (file)
@@ -706,7 +706,9 @@ public class ArgParser
    */
   public static class SubVal
   {
-    protected int index = 0;
+    private static int NOTSET = -1;
+
+    protected int index = NOTSET;
 
     protected String keyName = null;
 
@@ -752,5 +754,11 @@ public class ArgParser
         this.content = item;
       }
     }
+
+    public boolean notSet()
+    {
+      // notSet is true if content present but nonsensical
+      return index == NOTSET && keyName == null && keyValue == null;
+    }
   }
 }
\ No newline at end of file