Skip to content
This repository has been archived by the owner on Aug 22, 2023. It is now read-only.

Why is the default value for flags.boolean undefined? #138

Open
srlowe opened this issue Dec 3, 2020 · 1 comment
Open

Why is the default value for flags.boolean undefined? #138

srlowe opened this issue Dec 3, 2020 · 1 comment

Comments

@srlowe
Copy link

srlowe commented Dec 3, 2020

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?

@felipecrs
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants