}
// if there are more arguments we have a problem
if (iterator.hasNext()) {
final String arg = (String) iterator.next();
throw new OptionException(group, ResourceConstants.UNEXPECTED_TOKEN, arg);
}
// no need to validate if the help option is present
if (!commandLine.hasOption(helpOption) && !commandLine.hasOption(helpTrigger)) {
group.validate(commandLine);