parser icon indicating copy to clipboard operation
parser copied to clipboard

Why is the default value for flags.boolean undefined?

Open srlowe opened this issue 4 years ago • 1 comments

It seems that although the presence of a bool flag causes the parsed value to be true, the absence of a bool flag causes the parsed value to be undefined (unless default:false is explicitly set).

Wouldn't it make more sense for boolean flags to have a default-default value of false?

srlowe avatar Dec 03 '20 14:12 srlowe

No way! How could you intentionally have an "undefined" flag if we have a default-default = false?

felipecrs avatar Feb 10 '21 23:02 felipecrs