コード例 #1
0
 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();
 }