'Command "set" to set session variables.'

def do_set(self, line, cmd):

    try:
        args = shlex.split(line)
    except Exception as e:
        import traceback
        log.debug(traceback.format_exc())
        log.warn((messages.generic.error_parsing_command_s % str(e)))
    else:
        if (len(args) < 2):
            log.warn(messages.terminal.set_usage)
        elif (len(args) >= 2):
            args[1] = '    '.join(args[1:])
            self.session.set(args[0], args[1])
