lean4-htt/tests/pkg/user_opt/UserOptCmdline.lean
Sebastian Ullrich b07384acbb
feat: accept user-defined options on the cmdline (#4741)
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
2024-08-02 12:24:56 +00:00

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