def METHOD_NAME(self):
    for option in self.user_options:
        setattr(self, option[0].strip('=').replace('-', '_'), None)
    option_dict = self.distribution.get_option_dict(self.package_type)
    # This is a hack, we probably aren't supposed to loop through
    # the option_dict so early because distutils does exactly the
    # same thing later to check that we support the
    # options. However, it works...
    for (option, (source, value)) in option_dict.items():
        setattr(self, option, str(value))