Bug Fixes
- default: Remove undocumented alias of default() (#469) (b8591b2)
- remove deprecated zh.json (#578) (317c62c)
Features
- .help() API can now enable implicit help command (#574) (7645019)
- command: builder function no longer needs to return the yargs instance (#549) (eaa2873)
- add coerce api (#586) (1d53ccb)
- adds recommendCommands() for command suggestions (#580) (59474dc)
- apply .env() globally (#553) (be65728)
- apply default builder to command() and apply fail() handlers globally (#583) (0aaa68b)
- update yargs-parser to version 3.1.0 (#581) (882a127)
Performance Improvements
BREAKING CHANGES
- fail is now applied globally.
- we now default to an empty builder function when command is executed with no builder.
- yargs-parser now better handles negative integer values, at the cost of handling numeric option names, e.g., -1 hello
- default: removed undocumented
defaults
alias fordefault
. - introduces a default
help
command which outputs help, as an alternative to a help flag. - interpret demand() numbers as relative to executing command (#582) (927810c)