- added the
command
option, which allows you to document the commands that your application accepts:
var argv = require('yargs')
.command('upgrade', 'upgrade the current version of the application')
.argv;
- added the
epilogue
option, which allows you to specify a final line of text that your application should output. see: #14 - added the
array
option (similar to string, or boolean), tells the parser to always interpret a key as an array, even when only a single value is given. - version now prints with a newline: see: #81
- based on @nylen's work, window-size is now detected and is used to wrap usage instructions.
.check()
will now fail if any non-truthy value is returned. see: #76