1
0
mirror of https://github.com/thangisme/notes.git synced 2024-12-22 23:36:32 -05:00
notes/node_modules/yargs/example/bool.js

11 lines
232 B
JavaScript
Raw Normal View History

2017-03-09 13:16:08 -05:00
#!/usr/bin/env node
var util = require('util');
var argv = require('yargs').argv;
if (argv.s) {
util.print(argv.fr ? 'Le chat dit: ' : 'The cat says: ');
}
console.log(
(argv.fr ? 'miaou' : 'meow') + (argv.p ? '.' : '')
);