setup-php/node_modules/optimist/example/bool.js
Shivam Mathur 8f9786b73f init
2019-09-06 05:17:43 +05:30

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 ? '.' : '')
);