public void validate() { if (argumentConsumption.getType() != ArgumentConsumptionType.LOOSE_ARGS) { if (_switch == null || (_switch.getShortSwitch() == null && _switch.getLongSwitch() == null)) { throw createInvalidOptionSpecificationException("Option specified without switchess"); } } validateType(); }