Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
feat: .help() API can now enable implicit help command #574
In addition to a flagged option (e.g.
This means any yargs CLI can now enjoy commands such as:
$ cli help $ cli help command $ cli command help
No flag needed.
I opted to build the implicit command into the existing
It can be explicitly disabled by passing
Note that any help option aliases will also be used as an alias for the command, as long as:
This should be considered a 5.x breaking change in case existing CLIs use their own