Skip to content

Defining boolean options via Command#option() defaults to undefined, not false. #574

@karbica

Description

@karbica

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    docsREADME (or other docs) could be improved

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions