mirror of
https://github.com/Sei-Lisa/LSL-PyOptimizer
synced 2025-07-01 15:48:21 +00:00
Check -O help only when we're done processing options.
This commit is contained in:
parent
32840f4ad6
commit
0137d1ae52
1 changed files with 4 additions and 4 deletions
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])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue