Websocket
[VSoRC/.git] / node_modules / node-static / node_modules / optimist / example / string.js
diff --git a/node_modules/node-static/node_modules/optimist/example/string.js b/node_modules/node-static/node_modules/optimist/example/string.js
new file mode 100644 (file)
index 0000000..a8e5aeb
--- /dev/null
@@ -0,0 +1,11 @@
+#!/usr/bin/env node
+var argv = require('optimist')
+    .string('x', 'y')
+    .argv
+;
+console.dir([ argv.x, argv.y ]);
+
+/* Turns off numeric coercion:
+    ./node string.js -x 000123 -y 9876
+    [ '000123', '9876' ]
+*/