diff options
author | isaacs <i@izs.me> | 2018-12-11 01:51:38 +0300 |
---|---|---|
committer | Kat Marchán <kzm@zkat.tech> | 2018-12-11 01:51:38 +0300 |
commit | 02c837e01a71a26f37cbd5a09be89df8a9ce01da (patch) | |
tree | 8d4f53868dfa264fbfa649c54f8b369ece00b542 /lib | |
parent | 890a74458dd4a55e2d85f3eba9dbf125affa4206 (diff) |
dist-tag: make 'ls' the default action (#106)
I keep typing `npm dist-tags` expecting it to print out a list of
dist-tags and instead it yells at me and that feels very un-npm-y.
PR-URL: https://github.com/npm/cli/pull/106
Credit: @isaacs
Reviewed-By: @zkat
Diffstat (limited to 'lib')
-rw-r--r-- | lib/dist-tag.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/dist-tag.js b/lib/dist-tag.js index bd0c5ae8a..534cbe94c 100644 --- a/lib/dist-tag.js +++ b/lib/dist-tag.js @@ -40,7 +40,7 @@ function distTag (args, cb) { case 'ls': case 'l': case 'sl': case 'list': return list(args[0], cb) default: - return cb('Usage:\n' + distTag.usage) + return list(cmd, cb) } } |