Closed MartinHelmut closed 3 years ago
More thoughts, different syntax.
Only add if true:
[commands.build]
script = "cmake %{name 'do this'}"
[params.name]
type = "boolean"
If..else style with the or
keyword:
[commands.build]
script = "cmake %{name 'do this' or 'do that'}"
[params.name]
type = "boolean"
Open questions:
or
is used as a parameter name?This will also enable special usage options for boolean parameters, e.g.:
litr build --logging=true , run --logging=false
Sometimes you just want to activate/deactivate something based on a flag. This issue will serve to explore the how.
First draft