def METHOD_NAME(self, kwargs):
    super().METHOD_NAME(kwargs)
    self.chdir = self.options.get("chdir")
    self.elements = self.options.get("elements")
    xpath = self.options.get("xpath")
    path = self.options.get("path")
    if xpath and not path:
        raise TaskOptionsError("Specified XPath without `path` to work on.")
    elif path and not xpath:
        raise TaskOptionsError("Specified path without `xpath` to apply.")
    elif (path and self.elements) or (not self.elements and not path):
        raise TaskOptionsError(
            "Please specify either a single `path` and `xpath` (in CLI or cumulusci.yml) "
            "or a list of several through the `elements` option (cumulusci.yml)."
        )
    if not self.elements:
        self.elements = [{"xpath": xpath, "path": path}]