From 544255d0c30075dc4181edff99c16320bd7610bc Mon Sep 17 00:00:00 2001 From: fly Date: Sat, 15 Feb 2020 20:46:06 +0000 Subject: [PATCH] Fix Signed-off-by: fly --- worldbuild-worker.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/worldbuild-worker.py b/worldbuild-worker.py index 353828a..f1ace51 100755 --- a/worldbuild-worker.py +++ b/worldbuild-worker.py @@ -41,6 +41,8 @@ while i < argc: elif sys.argv[i] == "-p" or sys.argv[i] == "--prefix": i += 1 prefix = sys.argv[i] + elif sys.argv[i] == "-q" or sys.argv[i] == "--quiet": + quiet = True elif sys.argv[i] == "-a" or sys.argv[i] == "--action": i += 1 if sys.argv[i] == "pending" or sys.argv[i] == "started" or sys.argv[i] == "rebuild" or sys.argv[i] == "skip": @@ -64,12 +66,8 @@ while i < argc: print(" -h, --help Shows this help and exit") sys.exit(0) else: - if first == 1: - first = 0 - name = sys.argv[i] - else: - print("Unknown option " + sys.argv[i]) - sys.exit(1) + print("Unknown option " + sys.argv[i]) + sys.exit(1) i += 1 def norm(num, length):