- // look for type modification e.g. --help-opening
- int dashPos = arg.indexOf(ArgParser.SINGLEDASH);
- if (dashPos > -1)
+ String potentialArgName = argName.substring(0, dashPos);
+ Arg potentialArg = ArgParser.argMap.get(potentialArgName);
+ if (potentialArg != null && potentialArg.hasOption(Opt.HASTYPE))