Open ozgurakgun opened 4 years ago
That inconsistency is actually deliberate, see https://hackage.haskell.org/package/cmdargs-0.10.20/docs/System-Console-CmdArgs-Explicit.html#v:FlagOptRare. Boolean arguments go into the rare category since normally you want to leave them unadorned, and have --flag off
be two separate arguments.
It seems both
--flag=value
and--flag value
style works for all argument types except booleans. Here is a small example to reproduce.It could probably be made smaller by relying on implicits, but I am afraid of leaving things implicit, so everything is explicit. :)
test.sh