JAL-629 Fasta sequence id reading whitespace fix. Flexioble pae json keys and structu...
[jalview.git] / src / jalview / bin / ArgParser.java
index bb88536..338d130 100644 (file)
@@ -687,6 +687,13 @@ public class ArgParser
     return (vals == null || vals.size() == 0) ? null : vals.get(0);
   }
 
+  public static boolean hasValue(Map<Arg, ArgValues> m, Arg a)
+  {
+    if (!m.containsKey(a))
+      return false;
+    return getValue(m, a) != null;
+  }
+
   public static boolean getBoolean(Map<Arg, ArgValues> m, Arg a)
   {
     ArgValues av = getArgValues(m, a);