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):