From 15046bde16ef1f5c4eafe288e04a0fc968774ea4 Mon Sep 17 00:00:00 2001 From: fly Date: Thu, 27 Aug 2020 11:09:04 +0000 Subject: [PATCH] Added shot versions for commands Signed-off-by: fly --- worldbuild-runner.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/worldbuild-runner.py b/worldbuild-runner.py index d67e736..35f8e2e 100755 --- a/worldbuild-runner.py +++ b/worldbuild-runner.py @@ -121,15 +121,15 @@ while running: print("set workers sets number of workers to ") print("status shows number of running workers") print("quit stops all workers, then exits") - elif cmd == "status": + elif cmd == "status" or cmd == "sts": print("Current status:") print("Max running: " + str(l.run_max)) print("Running: " + str(l.run_count)) print("Shutting down: " + str(l.stop_count)) else: - match = re.match("(set workers) ([0-9]+)", cmd) + match = re.match("(set workers|sw) ([0-9]+)", cmd) if match != None: - if match.group(1) == "set workers": + if match.group(1) == "set workers" or match.group(1) == "sw": l.set_proc_count(int(match.group(2))) else: print("Invalid command. Type 'help' to see available commands")