install-nix-action/node_modules/optimist/example/bool.js
Domen Kožar 70742d22d9
v6
2019-11-19 17:50:30 +01:00

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