code: def getOption(self, name):
      
      name = name.strip()
      for o in self.options:
        if o.short == name or o.long == name:
          return o
      raise InterfaceException("No such option: " + name)
docs: Get the the Option object associated with the given name.
  
      :param name: the name of the option to retrieve; can be short or long name.
      :raise InterfaceException: if the named option doesn't exist.