daca2: improved command line flags
This commit is contained in:
parent
17f8edfada
commit
f58b4b61e2
|
@ -167,10 +167,6 @@ def scanarchive(fullpath):
|
||||||
results.write(comm[1] + '\n')
|
results.write(comm[1] + '\n')
|
||||||
results.close()
|
results.close()
|
||||||
|
|
||||||
if len(sys.argv) != 2:
|
|
||||||
print('no folder given')
|
|
||||||
sys.exit(1)
|
|
||||||
|
|
||||||
FOLDER = None
|
FOLDER = None
|
||||||
REV = None
|
REV = None
|
||||||
for arg in sys.argv[1:]:
|
for arg in sys.argv[1:]:
|
||||||
|
@ -178,6 +174,11 @@ for arg in sys.argv[1:]:
|
||||||
REV = arg[6:]
|
REV = arg[6:]
|
||||||
else:
|
else:
|
||||||
FOLDER = arg
|
FOLDER = arg
|
||||||
|
|
||||||
|
if not FOLDER:
|
||||||
|
print('no folder given')
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
archives = getpackages(FOLDER)
|
archives = getpackages(FOLDER)
|
||||||
|
|
||||||
time.sleep(30)
|
time.sleep(30)
|
||||||
|
|
Loading…
Reference in New Issue