Fix -a being available twice
Signed-off-by: fly <merspieler@airmail.cc>
This commit is contained in:
parent
985c2ed5fc
commit
66d65ba7b9
1 changed files with 2 additions and 2 deletions
|
@ -56,7 +56,7 @@ while i < argc:
|
||||||
global_db = True
|
global_db = True
|
||||||
elif sys.argv[i] == "-q" or sys.argv[i] == "--quiet":
|
elif sys.argv[i] == "-q" or sys.argv[i] == "--quiet":
|
||||||
quiet = True
|
quiet = True
|
||||||
elif sys.argv[i] == "-a" or sys.argv[i] == "--action":
|
elif sys.argv[i] == "--action":
|
||||||
i += 1
|
i += 1
|
||||||
if sys.argv[i] == "pending" or sys.argv[i] == "started" or sys.argv[i] == "rebuild" or sys.argv[i] == "skip":
|
if sys.argv[i] == "pending" or sys.argv[i] == "started" or sys.argv[i] == "rebuild" or sys.argv[i] == "skip":
|
||||||
action = sys.argv[i]
|
action = sys.argv[i]
|
||||||
|
@ -74,7 +74,7 @@ while i < argc:
|
||||||
print(" -a, --api Manager api url")
|
print(" -a, --api Manager api url")
|
||||||
print(" -t, --api-token Manager api token")
|
print(" -t, --api-token Manager api token")
|
||||||
print(" -q, --quiet Don't print messages")
|
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(" pending: Only builds pending tiles. These are always build: default")
|
||||||
print(" started: Run tiles marked as started. CAUTION, use with care.")
|
print(" started: Run tiles marked as started. CAUTION, use with care.")
|
||||||
print(" rebuild: Build tiles flaged for rebuild")
|
print(" rebuild: Build tiles flaged for rebuild")
|
||||||
|
|
Loading…
Reference in a new issue