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
elif opt == '-o':
outfile = val
elif opt == ('--timestamp', '-d'):
elif opt in ('--timestamp', '-d'):
timestamp = True
elif opt == '-c':
codes.append(val)
elif opt == '-p':
numproc = int(val)
elif opt == ('--recurse', '-r'):
elif opt in ('--recurse', '-r'):
recurse_dirs = True
else:
print(opt, file=sys.stderr)