<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def getOption(self, name):
 """ 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. """

    name = name.strip()
    for o in self.options:
      if o.short == name or o.long == name:
        return o
    raise InterfaceException("No such option: " + name)