mirror of
https://github.com/Sei-Lisa/LSL-PyOptimizer
synced 2025-07-01 15:48:21 +00:00
Add undocumented -O options 'LSO' and 'Expr'.
For unit testing.
This commit is contained in:
parent
35687f1b0f
commit
06edf8f152
1 changed files with 9 additions and 1 deletions
10
main.py
10
main.py
|
@ -306,7 +306,7 @@ validoptions = frozenset(('extendedglobalexpr','breakcont','extendedtypecast',
|
|||
'lazylists','enableswitch','errmissingdefault','funcoverride','optimize',
|
||||
'optsigns','optfloats','constfold','dcr','shrinknames','addstrings',
|
||||
'foldtabs','warntabs','processpre','explicitcast',
|
||||
'help'
|
||||
'help','lso','expr'
|
||||
# 'clear' is handled as a special case
|
||||
))
|
||||
|
||||
|
@ -461,6 +461,14 @@ def main(argv):
|
|||
shortname = arg
|
||||
del opts
|
||||
|
||||
if 'lso' in options:
|
||||
lslopt.lslcommon.LSO = True
|
||||
options.remove('lso')
|
||||
|
||||
if 'expr' in options:
|
||||
lslopt.lslcommon.IsCalc = True
|
||||
options.remove('expr')
|
||||
|
||||
if 'help' in options:
|
||||
Usage(argv[0], 'optimizer-options')
|
||||
return 0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue