This commit is contained in:
2026-04-09 19:42:06 +02:00
parent e5d7c59ef5
commit d17843181f
+4 -4
View File
@@ -8,7 +8,7 @@ def main(argv):
comp3 = ''
try:
opts, args = getopt.getopt(argv,"h:c1:c2:c3:",["comp1=","comp2=","comp3="])
opts, args = getopt.getopt(argv,"h:1:2:3:",["comp1=","comp2=","comp3="])
except getopt.GetoptError:
print ('test.py -i <inputfile> -a <address> -p <port>')
sys.exit(2)
@@ -16,11 +16,11 @@ def main(argv):
if opt == '-h':
print ('test.py -i <inputfile> -a <address> -p <port>')
sys.exit()
elif opt in ("-c1","--comp1"):
elif opt in ("-1","--comp1"):
comp1 = str(arg)
elif opt in ("-c2","--comp2"):
elif opt in ("-2","--comp2"):
comp2 = str(arg)
elif opt in ("-c3","--comp3"):
elif opt in ("-3","--comp3"):
comp3 = str(arg)
if len(comp1) != len(comp2) or len(comp1) != len(comp3):