From f7e138b6c12967588ed20b9fc28e36b55ca7eb7d Mon Sep 17 00:00:00 2001 From: spl0k Date: Sat, 2 Nov 2013 19:02:45 +0100 Subject: [PATCH] Added an 'exit' command to the CLI --- cli.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cli.py b/cli.py index 98a85dd..075bb71 100755 --- a/cli.py +++ b/cli.py @@ -53,6 +53,8 @@ class CLI(cmd.Cmd): def do_EOF(self, line): return True + do_exit = do_EOF + def default(self, line): print 'Unknown command %s' % line.split()[0] self.do_help(None)