Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorclaudiahdz <cghr1990@gmail.com>2020-06-10 00:31:21 +0300
committerclaudiahdz <cghr1990@gmail.com>2020-06-10 00:31:21 +0300
commitfab54be6dc350457aa96ec77cdb98c6661a8867f (patch)
tree072b091b3a21698897c0683656fd309a8797edc9
parentf1508a37659e7cf163c76a9d591077dcf34b21e6 (diff)
feat: make find-dupes docs point to dedupe docsfeat/dedupe-prune
-rw-r--r--lib/help.js5
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) {