Skip to content
Browse files

Use --log=$level to set the log level

  • Loading branch information...
1 parent 250c9e6 commit b72620a928cf42532216eda7ee36ebe8eb6db17a @jhs jhs committed Nov 6, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 cli.js
View
4 cli.js
@@ -15,7 +15,7 @@ function usage() {
].join("\n"));
}
-var argv = optimist.default({level: 'info'})
+var argv = optimist.default({log: 'info'})
.argv;
var couch_url = argv._[0];
@@ -29,7 +29,7 @@ if(!/^https?:\/\//.test(couch_url))
var couch = new Audit;
couch.url = couch_url;
-couch.log.setLevel(argv.level);
+couch.log.setLevel(argv.log);
couch.only_dbs = (argv.db ? [argv.db] : null);
var count = 0;

0 comments on commit b72620a

Please sign in to comment.
Something went wrong with that request. Please try again.