Fix
Signed-off-by: fly <merspieler@airmail.cc>
This commit is contained in:
parent
8dafbeb5be
commit
544255d0c3
1 changed files with 4 additions and 6 deletions
|
@ -41,6 +41,8 @@ while i < argc:
|
||||||
elif sys.argv[i] == "-p" or sys.argv[i] == "--prefix":
|
elif sys.argv[i] == "-p" or sys.argv[i] == "--prefix":
|
||||||
i += 1
|
i += 1
|
||||||
prefix = sys.argv[i]
|
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":
|
elif sys.argv[i] == "-a" or 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":
|
||||||
|
@ -63,10 +65,6 @@ while i < argc:
|
||||||
print(" skip: Force building tile that are marked for being skipped")
|
print(" skip: Force building tile that are marked for being skipped")
|
||||||
print(" -h, --help Shows this help and exit")
|
print(" -h, --help Shows this help and exit")
|
||||||
sys.exit(0)
|
sys.exit(0)
|
||||||
else:
|
|
||||||
if first == 1:
|
|
||||||
first = 0
|
|
||||||
name = sys.argv[i]
|
|
||||||
else:
|
else:
|
||||||
print("Unknown option " + sys.argv[i])
|
print("Unknown option " + sys.argv[i])
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
Loading…
Reference in a new issue