Skip to content

Commit

Permalink
Regression. Show usage for unknown commands.
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacs committed Dec 19, 2010
1 parent 3ca73be commit 9deb052
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,8 @@ log.verbose(argv, "cli")

var conf = parseArgs(argv)
npm.argv = conf.argv.remain
if (npm.deref(npm.argv[0])) {
npm.command = npm.argv.shift()
}
if (npm.deref(npm.argv[0])) npm.command = npm.argv.shift()
else conf.usage = true


if (conf.version) {
Expand Down

0 comments on commit 9deb052

Please sign in to comment.