throw new OptionException("The option name '"+optionname+"' for option group '"+og.getName()+"' already exists. The existing option is of urlenum type, but the new option is of '"+optiontype+"' type. ");
}
}
}
if (optiontype.equals("string")) {
og.addOption(new StringOption(og, optionname, shortdesctext, flag, usage, defaultValue));
} else if (optiontype.equals("bool")) {
og.addOption(new BoolOption(og, optionname, shortdesctext, flag, usage, defaultValue));
} else if (optiontype.equals("integer")) {
og.addOption(new IntegerOption(og, optionname, shortdesctext, flag, usage, defaultValue));
} else if (optiontype.equals("unary")) {