From 66d65ba7b98396a3e28d262642ea131146a1f02f Mon Sep 17 00:00:00 2001 From: fly Date: Fri, 16 Apr 2021 21:48:26 +0000 Subject: [PATCH] Fix -a being available twice Signed-off-by: fly --- worldbuild-worker.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/worldbuild-worker.py b/worldbuild-worker.py index 763bd49..9b108ee 100755 --- a/worldbuild-worker.py +++ b/worldbuild-worker.py @@ -56,7 +56,7 @@ while i < argc: global_db = True elif sys.argv[i] == "-q" or sys.argv[i] == "--quiet": quiet = True - elif sys.argv[i] == "-a" or sys.argv[i] == "--action": + elif 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": action = sys.argv[i] @@ -74,7 +74,7 @@ while i < argc: print(" -a, --api Manager api url") print(" -t, --api-token Manager api token") print(" -q, --quiet Don't print messages") - print(" -a, --action Considered tiles for build. Can be:") + print(" --action Considered tiles for build. Can be:") print(" pending: Only builds pending tiles. These are always build: default") print(" started: Run tiles marked as started. CAUTION, use with care.") print(" rebuild: Build tiles flaged for rebuild")