JAL-4353 Add secondary Types for Args, for STRUCTUREIMAGE Type and restrict structure...
[jalview.git] / src / jalview / bin / argparser / ArgParser.java
index 155f69e..fe73053 100644 (file)
@@ -661,7 +661,7 @@ public class ArgParser
 
         // set allstructures to all non-primary structure options in this linked
         // id if --allstructures has been set
-        if (allStructures && (a.getType() == Type.STRUCTURE
+        if (allStructures && (a.hasType(Type.STRUCTURE)
         // || a.getType() == Type.STRUCTUREIMAGE)
         ) && !a.hasOption(Opt.PRIMARY))
         {