TulipaEnergy / TulipaIO.jl

Apache License 2.0
1 stars 4 forks source link

wrap option handling in a function #48

Closed suvayu closed 6 months ago

suvayu commented 6 months ago

I considered using Val but it doesn't really work since it's also required to invoke the fuction with Val{value}, instead of just passing value (unless I misunderstood how this works).

So I essentially factored out the logic to a regular function, and wrote tests to cover all behaviours.

Thoughts?

suvayu commented 6 months ago

Looks like I misunderstood how to use Val :-p