You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
lean4game/server/testgame/TestGame/HelperTools.lean

12 lines
289 B
Plaintext

import Lean
-- show all available options
instance : ToString Lean.OptionDecl where
toString a := toString a.defValue ++ ", [" ++ toString a.group ++ "]: " ++ toString a.descr
def showOptions : IO Unit := do
let a <- Lean.getOptionDeclsArray
IO.println f! "{a}"
#eval showOptions