def METHOD_NAME(self, args):
    (ns, extra) = self.op.parse_known_args(args=args, lineno=self.lineno)
    if extra:
        raise KickstartParseError(_("Unexpected arguments to nvdimm command: %(arguments)s") %
                                  {"arguments": extra}, lineno=self.lineno)
    nvdimm_data = self.dataClass()   # pylint: disable=not-callable
    self.set_to_obj(ns, nvdimm_data)
    nvdimm_data.lineno = self.lineno
    action = ns.action[0]
    nvdimm_data.action = action
    if nvdimm_data.namespace and nvdimm_data.blockdevs:
        raise KickstartParseError(_("Only one of --namespace and --blockdevs device specifications can be used"))
    # Check for duplicates in the data list.
    if nvdimm_data in self.dataList():
        if nvdimm_data.namespace:
            warnings.warn(_("An action %(action)s on namespace %(namespace)s has already been defined.")
                          % {"action": action, "namespace": nvdimm_data.namespace}, KickstartParseWarning)
        if nvdimm_data.blockdevs:
            warnings.warn(_("An action %(action)s on devices %(blockdevs)s has already been defined.")
                          % {"action": action, "blockdevs": nvdimm_data.blockdevs}, KickstartParseWarning)
    if action == NVDIMM_ACTION_RECONFIGURE:
        if not nvdimm_data.namespace:
            raise KickstartParseError(_("Action %(action)s requires --namespace argument to be set")
                                      % {"action": action})
        if nvdimm_data.mode == NVDIMM_MODE_SECTOR and not nvdimm_data.sectorsize:
            raise KickstartParseError(_("Action %(action)s with mode %(mode)s requires --sectorsize argument to be set")
                                      % {"action": action, "mode": nvdimm_data.mode})
    elif action == NVDIMM_ACTION_USE:
        if not nvdimm_data.namespace and not nvdimm_data.blockdevs:
            raise KickstartParseError(_("Action %(action)s requires --namespace or --blockdevs argument to be set")
                                      % {"action": action})
    return nvdimm_data