correct parameter

This commit is contained in:
Christian Rotzoll
2019-04-30 23:11:47 +02:00
parent 8cc6903e20
commit e01bc824c9

View File

@@ -61,12 +61,12 @@ elif mode=="seed" or mode=="scb":
print("err='not correct amount of parameter - missing seed string'")
sys.exit(1)
elif mode=="seed":
if mode=="seed":
if len(sys.argv)>4:
seedpassword=sys.argv[4]
elif mode=="scb":
elif mode=="scb":
if len(sys.argv)>4:
filepathSCB=sys.argv[4]
@@ -76,7 +76,6 @@ elif mode=="scb":
else:
print("err='the given filepathSCB - file does not exists or no permission'")
sys.exit(1)
else:
print("err='not correct amount of parameter - missing seed filepathSCB'")
sys.exit(1)