'Adds the parameter to get output to the command string that the
user has set.'

def processCommandString(self, username, current_path, command_string):

    arg_match = self.xml_arg_re.match(command_string)
    if (arg_match is None):
        return ('%s    --xml    %s' % (command_string, self._output_file_path))
    else:
        return re.sub(arg_match.group(1), ('-xml    %s' % self._output_file_path), command_string)
