TanklesXL / glint

Gleam command-line argument parsing with flags and automated help text generation.
https://hex.pm/packages/glint
Apache License 2.0
50 stars 7 forks source link

The default flag value possible improvements #13

Closed tim2CF closed 4 months ago

tim2CF commented 1 year ago

Thanks for the library! It's good! The nice QoL improvement would be either parametrization of flag output type, or make it at least Option(a). Providing default "a" value for every flag, and then making additional clause which handles default value does not feel very good. Best regards!

TanklesXL commented 1 year ago

Thanks! if you take a look at the PR that references this issue I'd be curious to hear your thoughts on having the default be an Option