def optionIsSet(self, name):
name = name.strip()<EOL>if not self.hasOption(name):<EOL><INDENT>return False<EOL><DEDENT>return self.getOption(name).isSet()<EOL>
Check whether an option with a given name exists and has been set.

:param name: the name of the option to check; can be short or long name.
:return: true if an option matching the given name exists and it has had
         it's value set by the user