diff --git a/theXORitself.py b/theXORitself.py index cbc9f0b..13a4599 100644 --- a/theXORitself.py +++ b/theXORitself.py @@ -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 -a
-p ') sys.exit(2) @@ -16,11 +16,11 @@ def main(argv): if opt == '-h': print ('test.py -i -a
-p ') 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):