Initial options are now re-parsed and validated after importing. Cmdline option assignments prefixed with `weak.` are silently discarded if the option name without the prefix does not exist. Fixes #3403
12 lines
217 B
Text
12 lines
217 B
Text
import UserOpt.Opts
|
|
|
|
/-! Test setting user options from lakefile. -/
|
|
|
|
open Lean
|
|
|
|
def tst2 : MetaM Unit := do
|
|
assert! myBoolOpt.get (← getOptions)
|
|
assert! myNatOpt.get (← getOptions) == 4
|
|
pure ()
|
|
|
|
#eval tst2
|