1
0
mirror of https://github.com/spl0k/supysonic.git synced 2024-12-23 01:16:18 +00:00

Added an 'exit' command to the CLI

This commit is contained in:
spl0k 2013-11-02 19:02:45 +01:00
parent dfc062180b
commit 78eac108a4

2
cli.py
View File

@ -53,6 +53,8 @@ class CLI(cmd.Cmd):
def do_EOF(self, line): def do_EOF(self, line):
return True return True
do_exit = do_EOF
def default(self, line): def default(self, line):
print 'Unknown command %s' % line.split()[0] print 'Unknown command %s' % line.split()[0]
self.do_help(None) self.do_help(None)