'spool
Short-cut command for set cli.spool = 1/0'

def do_spool(self, line):

    if self.ownopts['cli.spool']:
        val = '0'
    else:
        val = '1'
    if self.ownopts['cli.spool_file']:
        return self.do_set(('cli.spool    =    ' + val))
    else:
        self.edprint("You    haven't    set    cli.spool_file.    Set    that    before    enabling    spooling.")
