Proxy v8 argv (including harmony) to v8/node while forwarding the remaining arguments to a custom script.
v8-argv
is available on npm.
npm install v8-argv
- @param {String} path to resolve to actual bin (repeatable)
#!/usr/bin/env node
require('v8-argv')(__dirname + '/_app');
// require('v8-argv')('--harmony', __dirname + '/_app');
#!/usr/bin/env node
program.parse(process.argv); // etc...
npm test