Permalink
Browse files

Fix error when using `npm help foo bar baz`.

Fixes the following exception:

4 error ReferenceError: num is not defined
4 error     at EventEmitter.help (/usr/local/lib/node_modules/npm/lib/help.js:27:46)
4 error     at Object.commandCache.(anonymous function) (/usr/local/lib/node_modules/npm/lib/npm.js:193:11)
4 error     at EventEmitter.<anonymous> (/usr/local/lib/node_modules/npm/bin/npm-cli.js:83:28)
4 error     at process._tickCallback (node.js:415:13)
  • Loading branch information...
1 parent c5dc74f commit 6a28dd147c6957a93db12b1081c6e0da44fe5e3c @dereckson dereckson committed with domenic Oct 28, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/help.js
View
@@ -24,7 +24,7 @@ function help (args, cb) {
// npm help foo bar baz: search topics
if (args.length > 1 && args[0]) {
- return npm.commands["help-search"](args, num, cb)
+ return npm.commands["help-search"](args, argnum, cb)
}
var section = npm.deref(args[0]) || args[0]

0 comments on commit 6a28dd1

Please sign in to comment.