def METHOD_NAME(self, username, current_path, command_string):
    super().METHOD_NAME(username, current_path, command_string)
    arg_match = self.xml_arg_re.match(command_string)
    if arg_match is None:
        return re.sub(r"(^.*?nuclei)",
                      r"\1 --json -irr -o %s" % self._output_file_path,
                      command_string)
    else:
        return re.sub(arg_match.group(1),
                      r" --json -irr -o %s" % self._output_file_path,
                      command_string)