docs: def handle_option_error(func):
      """ Decorator that calls given method/function and handles any RuleOptionError gracefully by converting it to a
      LintConfigError. """
  
      def wrapped(*args):
          try:
              return func(*args)
          except options.RuleOptionError as e:
              raise LintConfigError(ustr(e))
  
      return wrapped