setup-node/node_modules/optimist/example/string.js
Danny McCormick c3f0a8be66 Use husky
2019-06-05 11:34:47 -04:00

12 lines
217 B
JavaScript

#!/usr/bin/env node
var argv = require('optimist')
.string('x', 'y')
.argv
;
console.dir([ argv.x, argv.y ]);
/* Turns off numeric coercion:
./node string.js -x 000123 -y 9876
[ '000123', '9876' ]
*/