diff options
author | claudiahdz <cghr1990@gmail.com> | 2020-06-10 00:31:21 +0300 |
---|---|---|
committer | claudiahdz <cghr1990@gmail.com> | 2020-06-10 00:31:21 +0300 |
commit | fab54be6dc350457aa96ec77cdb98c6661a8867f (patch) | |
tree | 072b091b3a21698897c0683656fd309a8797edc9 | |
parent | f1508a37659e7cf163c76a9d591077dcf34b21e6 (diff) |
feat: make find-dupes docs point to dedupe docsfeat/dedupe-prune
-rw-r--r-- | lib/help.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/help.js b/lib/help.js index 2f761a7f1..26f7999af 100644 --- a/lib/help.js +++ b/lib/help.js @@ -35,7 +35,10 @@ function help (args, cb) { return npm.commands['help-search'](args, argnum, cb) } - var section = npm.deref(args[0]) || args[0] + const affordances = { + 'find-dupes': 'dedupe' + } + var section = affordances[args[0]] || npm.deref(args[0]) || args[0] // npm help <noargs>: show basic usage if (!section) { |