1,2,3
This commit is contained in:
+4
-4
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user