Check -O help only when we're done processing options.
This commit is contained in:
8
main.py
8
main.py
@@ -344,10 +344,6 @@ def main(argv):
|
||||
arg = arg.encode('utf8')
|
||||
|
||||
if opt in ('-O', '--optimizer-options'):
|
||||
if arg == 'help':
|
||||
Usage(argv[0], 'optimizer-options')
|
||||
return 0
|
||||
|
||||
optchanges = arg.lower().split(',')
|
||||
for chg in optchanges:
|
||||
if chg in ('clear', '+clear'):
|
||||
@@ -438,6 +434,10 @@ def main(argv):
|
||||
shortname = arg
|
||||
del opts
|
||||
|
||||
if 'help' in options:
|
||||
Usage(argv[0], 'optimizer-options')
|
||||
return 0
|
||||
|
||||
fname = args[0] if args else None
|
||||
if fname is None:
|
||||
Usage(argv[0])
|
||||
|
||||
Reference in New Issue
Block a user