diff options
author | isaacs <i@izs.me> | 2012-08-01 19:10:42 -0700 |
---|---|---|
committer | isaacs <i@izs.me> | 2012-08-02 08:09:47 -0700 |
commit | f5c07b65a09afe2f9571efece91a4898d7b79404 (patch) | |
tree | 6fa23a49254d4188679e4bb285f3b4df1f6e388e /deps/npm/node_modules/node-gyp/bin | |
parent | 53f3b128f5efd5fdca2dcab9ff3e5d3e2b9debf1 (diff) | |
download | node-new-f5c07b65a09afe2f9571efece91a4898d7b79404.tar.gz |
npm: Upgrade to 1.1.46
Diffstat (limited to 'deps/npm/node_modules/node-gyp/bin')
-rwxr-xr-x | deps/npm/node_modules/node-gyp/bin/node-gyp.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/deps/npm/node_modules/node-gyp/bin/node-gyp.js b/deps/npm/node_modules/node-gyp/bin/node-gyp.js index d16a44aa93..55fa08fd0f 100755 --- a/deps/npm/node_modules/node-gyp/bin/node-gyp.js +++ b/deps/npm/node_modules/node-gyp/bin/node-gyp.js @@ -22,7 +22,12 @@ var completed = false prog.parseArgv(process.argv) if (prog.todo.length === 0) { - return prog.usageAndExit() + if (~process.argv.indexOf('-v') || ~process.argv.indexOf('--version')) { + console.log('v%s', prog.version) + } else { + console.log('%s', prog.usage()) + } + return process.exit(0) } log.info('it worked if it ends with', 'ok') |