def _add_option(self, option):
if option.name in self.options:<EOL><INDENT>raise ValueError('<STR_LIT>')<EOL><DEDENT>if option.abbreviation in self.abbreviations:<EOL><INDENT>raise ValueError('<STR_LIT>')<EOL><DEDENT>if option.name in [arg.name for arg in self.positional_args]:<EOL><INDENT>raise ValueError('<STR_LIT>')<EOL><DEDENT>self.options[option.name] = option<EOL>if option.abbreviation:<EOL><INDENT>self.abbreviations[option.abbreviation] = option<EOL><DEDENT>self.option_order.append(option.name)<EOL>
Add an Option object to the user interface.