aboutsummaryrefslogtreecommitdiffstats
path: root/vnfmarket/src/main/webapp/vnfmarket/node_modules/optimist/example/xup.js
diff options
context:
space:
mode:
Diffstat (limited to 'vnfmarket/src/main/webapp/vnfmarket/node_modules/optimist/example/xup.js')
-rw-r--r--vnfmarket/src/main/webapp/vnfmarket/node_modules/optimist/example/xup.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/vnfmarket/src/main/webapp/vnfmarket/node_modules/optimist/example/xup.js b/vnfmarket/src/main/webapp/vnfmarket/node_modules/optimist/example/xup.js
new file mode 100644
index 00000000..8f6ecd20
--- /dev/null
+++ b/vnfmarket/src/main/webapp/vnfmarket/node_modules/optimist/example/xup.js
@@ -0,0 +1,10 @@
+#!/usr/bin/env node
+var argv = require('optimist').argv;
+
+if (argv.rif - 5 * argv.xup > 7.138) {
+ console.log('Buy more riffiwobbles');
+}
+else {
+ console.log('Sell the xupptumblers');
+}
+