diff options
author | isaacs <i@izs.me> | 2011-08-18 03:54:54 +0400 |
---|---|---|
committer | isaacs <i@izs.me> | 2011-08-18 03:55:12 +0400 |
commit | 8e84a57de64bea4c06d96bad5d1e4053748728b0 (patch) | |
tree | 83e58760a7ef56299de29be5411d0278eed6238f | |
parent | d2e23deb9cdc7543a3d2d8d977f4fb157cc04367 (diff) |
Preserve other members of command functions
-rw-r--r-- | npm.js | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -151,8 +151,9 @@ Object.keys(abbrevs).concat(plumbing).forEach(function (c) { } cmd.apply(npm, arguments) } - commandCache[a].completion = cmd.completion - commandCache[a].usage = cmd.usage + Object.keys(cmd).forEach(function (k) { + commandCache[a][k] = cmd[k] + }) return commandCache[a] }, enumerable: fullList.indexOf(c) !== -1 }) }) |