Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const args = mri(process.argv.slice(2), {
boolean: ['help', 'version', 'why'],
alias: {
h: 'help',
v: 'version',
w: 'why'
}
})
if (args.help) {
console.info(help)
} else if (args.version) {
console.info(require('../package.json').version)
} else if (args.why && args._.length === 1) {
why(process.cwd(), args._[0])
} else {
list()
}