def apply_config_options(self, config_options):
        """ Given a list of config options of the form "<rule>.<option>=<value>", parses out the correct rule and option
        and sets the value accordingly in this config object. """
        for config_option in config_options:
            try:
                config_name, option_value = config_option.split("=", 1)
                if not option_value:
                    raise ValueError()
                rule_name, option_name = config_name.split(".", 1)
                if rule_name == "general":
                    self.set_general_option(option_name, option_value)
                else:
                    self.set_rule_option(rule_name, option_name, option_value)
            except __HOLE__:  # raised if the config string is invalid
                raise LintConfigError(
                    "'{0}' is an invalid configuration option. Use '<rule>.<option>=<value>'".format(config_option))
dataset/ETHPy150Open jorisroovers/gitlint/gitlint/config.py/LintConfig.apply_config_options