l0bsterssg

node.js static responsive blog post generator
Log | Files | Refs | README

bool.js (235B)


      1 #!/usr/bin/env node
      2 var util = require('util');
      3 var argv = require('optimist').argv;
      4 
      5 if (argv.s) {
      6     util.print(argv.fr ? 'Le chat dit: ' : 'The cat says: ');
      7 }
      8 console.log(
      9     (argv.fr ? 'miaou' : 'meow') + (argv.p ? '.' : '')
     10 );