def hasOption(self, name):
name = name.strip()<EOL>for o in self.options:<EOL><INDENT>if o.short == name or o.long == name:<EOL><INDENT>return True<EOL><DEDENT><DEDENT>return False<EOL>
Check whether this CLI has an option with a given name.

:param name: the name of the option to check; can be short or long name.
:return: true if an option exists in the UI for the given name