JAL-629 Added --opennew --nonews --nosplash. Added java globbing for = e.g. --open...
[jalview.git] / src / jalview / bin / argparser / ArgValue.java
index 2aa32df..28cead9 100644 (file)
@@ -13,11 +13,18 @@ public class ArgValue
 
   private SubVals subVals = null;
 
+  protected ArgValue(SubVals sv, String content, int argIndex)
+  {
+    this.value = content;
+    this.argIndex = argIndex;
+    this.subVals = sv;
+  }
+
   protected ArgValue(String value, int argIndex)
   {
-    this.value = value;
     this.argIndex = argIndex;
-    this.subVals = ArgParser.getSubVals(getValue());
+    this.subVals = ArgParser.getSubVals(value);
+    this.value = getSubVals().getContent();
   }
 
   public String getValue()