JAL-629 Change behaviour of --open GLOB to increment defaultLinkedId to allow --allfr...
[jalview.git] / src / jalview / bin / argparser / ArgValuesMap.java
index 63e5302..cbc6faa 100644 (file)
@@ -226,4 +226,17 @@ public class ArgValuesMap
     return dirname ? FileUtils.getDirname(file)
             : FileUtils.getBasename(file);
   }
+
+  /*
+   * Checks if there is an Arg with Opt
+   */
+  public boolean hasArgWithOption(Opt o)
+  {
+    for (Arg a : getArgKeys())
+    {
+      if (a.hasOption(o))
+        return true;
+    }
+    return false;
+  }
 }