Bug correction

Bug correction of parsing cmdline parameters
This commit is contained in:
lelicopter
2016-02-24 12:05:32 +10:00
parent 551e2174cb
commit fff4283f73

View File

@@ -92,13 +92,13 @@ for opt, val in opts:
options['showgrammar'] = True options['showgrammar'] = True
elif opt == '-o': elif opt == '-o':
outfile = val outfile = val
elif opt == ('--timestamp', '-d'): elif opt in ('--timestamp', '-d'):
timestamp = True timestamp = True
elif opt == '-c': elif opt == '-c':
codes.append(val) codes.append(val)
elif opt == '-p': elif opt == '-p':
numproc = int(val) numproc = int(val)
elif opt == ('--recurse', '-r'): elif opt in ('--recurse', '-r'):
recurse_dirs = True recurse_dirs = True
else: else:
print(opt, file=sys.stderr) print(opt, file=sys.stderr)