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":
|
||||||
|
@ -64,12 +66,8 @@ while i < argc:
|
||||||
print(" -h, --help Shows this help and exit")
|
print(" -h, --help Shows this help and exit")
|
||||||
sys.exit(0)
|
sys.exit(0)
|
||||||
else:
|
else:
|
||||||
if first == 1:
|
print("Unknown option " + sys.argv[i])
|
||||||
first = 0
|
sys.exit(1)
|
||||||
name = sys.argv[i]
|
|
||||||
else:
|
|
||||||
print("Unknown option " + sys.argv[i])
|
|
||||||
sys.exit(1)
|
|
||||||
i += 1
|
i += 1
|
||||||
|
|
||||||
def norm(num, length):
|
def norm(num, length):
|
||||||
|
|
Loading…
Reference in a new issue