dockerized_openAger/nodered/rootfs/data/node_modules/optimist/example/bool.js

11 lines
235 B
JavaScript
Raw Normal View History

2020-10-17 16:42:50 +00:00
#!/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 ? '.' : '')
);