a zero-config cli core
$ npm install michaelrhodes/zcc#2.1.1
chmod u+x bin.js
./bin.js hello world
> hello, world
// bin.js
#!/usr/bin/env node
require('zcc')()
// hello.js
module.exports = function (name) {
console.log('hello, ' + name)
}
chmod u+x bin.js
./bin.js hello --name world
> hello, world
// bin.js
#!/usr/bin/env node
require('zcc')(require('mri'))
// hello.js
module.exports = function (args) {
console.log('hello, ' + args.name)
}