Values for options get automatically converted to "" even if the user has not passed any value,
this makes it impossible to detect if the user has passed an empty string to the cli.
It would be neat to get a way to access the original Option so we can be more explicit.
Something like this
var p = newParser:
command("command"):
option("--foo")
run:
assert: opts.fooOpt == none[string]
Values for options get automatically converted to
""
even if the user has not passed any value, this makes it impossible to detect if the user has passed an empty string to the cli.It would be neat to get a way to access the original
Option
so we can be more explicit.Something like this