Commit 0740b6d9 authored by Seblu's avatar Seblu
Browse files

Introduce debug command

debug command switch to debug mode
parent f008335f
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -26,6 +26,15 @@ class Command_version(Command):
        self.printer.out(cccli.version)


class Command_debug(Command):
    '''Switch to debug mode'''
    def __call__(self, argv):
        if len(argv) != 1:
            raise cmdBadArgument()
        import cccli
        cccli.debug = not cccli.debug


class Command_whoami(Command):
    '''Show connection login'''