Skip to main content
Module

x/yargs/example/xup.js

yargs the modern, pirate-themed successor to optimist.
Go to Latest
File
#!/usr/bin/env nodevar argv = require('yargs/yargs')(process.argv.slice(2)).argv;
if (argv.rif - 5 * argv.xup > 7.138) { console.log('Buy more riffiwobbles');} else { console.log('Sell the xupptumblers');}