You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
According to the example http://tj.github.io/commander.js/#Command.prototype.option, when defining an option that does not have a required or optional value, it defaults to undefined when it should default to false. However, if it's long hand value contains -no-, it properly defaults to true.
The text was updated successfully, but these errors were encountered:
I have rewritten the options description in the README, mentioning the default boolean value being undefined, and covering negatable boolen separately (both with examples). Hopefully this should make it clearer what the current behaviour is.
According to the example http://tj.github.io/commander.js/#Command.prototype.option, when defining an option that does not have a required or optional value, it defaults to
undefined
when it should default tofalse
. However, if it's long hand value contains-no-
, it properly defaults totrue
.The text was updated successfully, but these errors were encountered: