always exit on empty command line
This commit is contained in:
parent
4edabbdf3b
commit
7f5aef193d
8
dwtt
8
dwtt
@ -39,9 +39,13 @@ def main(argv):
|
||||
|
||||
while True:
|
||||
cmdline = doCmdWindow()
|
||||
cmd = Command(cmdline)
|
||||
if not processCommand(cmd, ds):
|
||||
if cmdline.strip() == '':
|
||||
break
|
||||
cmd = Command(cmdline)
|
||||
res = processCommand(cmd, ds)
|
||||
if type(res).__name__ == 'bool':
|
||||
if not res:
|
||||
break
|
||||
|
||||
def doCmdWindow():
|
||||
c = CmdWindow()
|
||||
|
Loading…
x
Reference in New Issue
Block a user