Merge pull request #3 from lelicopter/master

Bug correction (parse cmd options)
This commit is contained in:
R. Bernstein
2016-02-23 21:15:30 -05:00

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)