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

11 lines
235 B
JavaScript

#!/usr/bin/env node
var util = require('util');
var argv = require('optimist').argv;
if (argv.s) {
util.print(argv.fr ? 'Le chat dit: ' : 'The cat says: ');
}
console.log(
(argv.fr ? 'miaou' : 'meow') + (argv.p ? '.' : '')
);