args-parser
args-parser copied to clipboard
Doesn't provide a way for empty string or false values
I'm trying to provide an argument to specify a value to be either the empty string or false, and I can't seem to do it.
Example:
--defaultPath=
--defaultPath=""
both yield:
{ defaultPath: true }
instead of:
{ defaultPath: "" }
or
{ defaultPath: false }
Although this produces a true value, I also can't figure out how to generate a false value, e.g.
--defaultPath=false
yields:
{ defaultPath: "false" }