code: private Option resolveOption(String name) {
          name = OptionUtils.stripLeadingHyphens(name);
          for (Option option : options) {
              if (name.equals(option.getName())) {
                  return option;
              }
              if (name.equals(option.getLongName())) {
                  return option;
              }
          }
          return null;
      }
docs: Retrieves the option object given the long or short option as a String.
  
  @param name the short or long name of the option
  @return the canonicalized option