You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

10 lines
235 B

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