parser
parser copied to clipboard
Why is the default value for flags.boolean undefined?
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
?
No way! How could you intentionally have an "undefined" flag if we have a default-default = false?