Zulip Chat Archive
Stream: lean4
Topic: Registering custom options on the command line
Eric Wieser (Jun 13 2024 at 16:41):
If I define a new option
register_option fooOption : Bool := {
defValue := false
descr := "if true, foo"
}
then while I can use this with set_option, I can't use it with lean -DfooOption=true or leanOptions := #[(`fooOption, true)] in the lakefile, as the option is processed before my file defining it is imported.
Is it possible to make this work?
Eric Wieser (Jun 13 2024 at 16:41):
Ah, this is lean4#3403
Last updated: May 02 2025 at 03:31 UTC