always exit on empty command line

This commit is contained in:
Josh Holtrop 2011-01-03 08:27:08 -05:00
parent 4edabbdf3b
commit 7f5aef193d

6
dwtt
View File

@ -39,8 +39,12 @@ def main(argv):
while True: while True:
cmdline = doCmdWindow() cmdline = doCmdWindow()
if cmdline.strip() == '':
break
cmd = Command(cmdline) cmd = Command(cmdline)
if not processCommand(cmd, ds): res = processCommand(cmd, ds)
if type(res).__name__ == 'bool':
if not res:
break break
def doCmdWindow(): def doCmdWindow():