Files
zulip/node_modules/handlebars/node_modules/optimist/example/string.js
Keegan McAllister 9b9d85eb36 Import Handlebars compiler and dependencies
Storing these in Git seems kind of weird, but seems to be [1] the done thing.
I have to say, it's a lot more appealing than getting 3 packages from npm
installed globally on every prod and dev machine -- we already have too much of
that with 'pip install'.

We can upgrade these in the future by running 'npm update' in the repo root
directory.

[1] http://www.futurealoof.com/posts/nodemodules-in-git.html

(imported from commit 60a9d6a7cafe742442d87e9f3abc25750e179780)
2013-04-02 14:43:58 -04:00

12 lines
217 B
JavaScript

#!/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' ]
*/