public Option[] findAllOptionTypes(final Class optionClass){
  Check.notNull(optionClass,"optionClass");
  return findAllOptionTypes(new Class[]{optionClass});
}

public Option [ ] findAllOptionTypes ( final Class optionClass ) { Check . notNull ( optionClass , "optionClass" ) ; return findAllOptionTypes ( new Class [ ] { optionClass } ) ; }
finds all options that the user set for this command that match the given class .
