X-Git-Url: https://git.josue.xyz/?a=blobdiff_plain;ds=sidebyside;f=node_modules%2Fnode-static%2Fnode_modules%2Foptimist%2Fexample%2Fstring.js;fp=node_modules%2Fnode-static%2Fnode_modules%2Foptimist%2Fexample%2Fstring.js;h=a8e5aeb23167b13cee1a445b7fe40f3d9c2ff8f4;hb=0f4e331e6d75c244e978860b62a6e1aed8d446e0;hp=0000000000000000000000000000000000000000;hpb=0cb383f1c0646575a831f4f812cd85c9e24d9a18;p=VSoRC%2F.git 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 index 0000000..a8e5aeb --- /dev/null +++ b/node_modules/node-static/node_modules/optimist/example/string.js @@ -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' ] +*/