You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-03 16:59:52 +08:00
Bug correction
Bug correction of parsing cmdline parameters
This commit is contained in:
@@ -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)
|
||||||
|
Reference in New Issue
Block a user