Skip to content
This repository has been archived by the owner on Aug 11, 2022. It is now read-only.

Commit

Permalink
handle unknown config actions more friendlylike
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacs committed Aug 9, 2010
1 parent 1a716a3 commit cebc901
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/config.js
Expand Up @@ -58,5 +58,7 @@ function list (cb) {
}

function unknown (action, cb) {
cb(new Error("Unrecognized config command "+action))
console.error("Usage:")
console.error(" npm config [ ls | get <key> | set <key> <val> | delete <key> ]")
cb()
}

0 comments on commit cebc901

Please sign in to comment.