args-parser icon indicating copy to clipboard operation
args-parser copied to clipboard

Doesn't provide a way for empty string or false values

Open michael-ts opened this issue 3 years ago • 0 comments

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" }

michael-ts avatar Sep 29 '22 02:09 michael-ts