private Option resolveOption(String opt){
  opt=Util.stripLeadingHyphens(opt);
  for (Iterator it=options.iterator(); it.hasNext(); ) {
    Option option=(Option)it.next();
    if (opt.equals(option.getOpt())) {
      return option;
    }
    if (opt.equals(option.getLongOpt())) {
      return option;
    }
  }
  return null;
}

private Option resolveOption ( String opt ) { opt = Util . stripLeadingHyphens ( opt ) ; for ( Iterator it = options . iterator ( ) ; it . hasNext ( ) ; ) { Option option = ( Option ) it . next ( ) ; if ( opt . equals ( option . getOpt ( ) ) ) { return option ; } if ( opt . equals ( option . getLongOpt ( ) ) ) { return option ; } } return null ; }
retrieves the option object given the long or short option as a string
