always exit on empty command line
This commit is contained in:
parent
4edabbdf3b
commit
7f5aef193d
6
dwtt
6
dwtt
@ -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():
|
||||||
|
Loading…
x
Reference in New Issue
Block a user