Bot releases are visible (Hide)
vercel/ncc
(#159) 71d640ehttps://github.com/sindresorhus/meow/compare/v7.1.0...v7.1.1
flags
option TypeScript types to acknowledge isMultiple
and isRequired
options (#154) e38789fhttps://github.com/sindresorhus/meow/compare/v7.0.1...v7.1.0
isMultiple
not handling multi-word flags (#150) e08eb4dhttps://github.com/sindresorhus/meow/compare/v7.0.0...v7.0.1
isRequired
flag option (#141) 1eede6aisMultiple
flag option (#143) c4c5ee2https://github.com/sindresorhus/meow/compare/v6.1.1...v7.0.0
https://github.com/sindresorhus/meow/compare/v6.1.0...v6.1.1
yargs-parser
dependency (#137) 4527b45https://github.com/sindresorhus/meow/compare/v6.0.1...v6.1.0
https://github.com/sindresorhus/meow/compare/v6.0.0...v6.0.1
flags
property (#108) f36715cprocess.argv
(#114) cd29865loud-rejection
to hard-rejection
f60c26enumber
flag type (#103) 5ef9478hardRejection
option 2bcfee7https://github.com/sindresorhus/meow/compare/v5.0.0...v6.0.0
minimist
, which is no longer maintained, to yargs-parser
. It should be fully compatible, but let us know if something breaks.booleanDefault
option. https://github.com/sindresorhus/meow/commit/09f7ef0e427d30741d57f4a3918b133c39a7d30f
https://github.com/sindresorhus/meow/compare/v4.0.1...v5.0.0
Meow 4 is finally out ✨
minimist
options are specified. (See more below) https://github.com/sindresorhus/meow/commit/43401c39ee442db308288f50d6f213cd0e6e602c https://github.com/sindresorhus/meow/commit/554119b0af09cb33aea4e709c0572043cd00586d
inferType
option. https://github.com/sindresorhus/meow/commit/1662881674c6b243226314e35d46115ea66329ff
help
option. Just use a template literal. https://github.com/sindresorhus/meow/commit/c80321d2ec6733d502335edb29d173f12bbf1111
pkg
option accepting a string. https://github.com/sindresorhus/meow/commit/2d4d89043c41030d60ee9eb5130a4fa62935ca37
help
and version
options to false
. Instead, use the new autoHelp
and autoVersion
options. https://github.com/sindresorhus/meow/commit/59dda7a9caf8400ce602d2b1cf663aa1b35bdfca
cli.showHelp()
now. https://github.com/sindresorhus/meow/commit/6a32bbc3acc9c41068234d80188e9d2e865f50fa
https://github.com/sindresorhus/meow/compare/v3.7.0...v4.0.0
minimist
options are specifiedIn Meow v3 you specified minimist
options top-level just like documented in the minimist
readme. Now you specify them in a flags
option, grouped by flag name instead of option type.
const cli = meow(
`
Help text
`,
{
boolean: [
'unicorn'
],
string: [
'fooBar'
],
alias: {
u: 'unicorn'
},
default: {
foobar: 'foo'
}
}
});
const cli = meow(
`
Help text
`,
flags: {
unicorn: {
type: 'boolean',
alias: 'u'
},
fooBar: {
type: 'string',
default: 'foo'
}
}
});
I would strongly recommend specifying the type
property whenever possible to reduce CLI argument parsing ambiguity.