diff options
author | Samy Pessé <samypesse@gmail.com> | 2015-01-23 18:39:07 +0100 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2015-01-23 18:39:07 +0100 |
commit | 5bd12692684cffc94ba8480f73358f4bf61b8997 (patch) | |
tree | 7b3ecfa830ebfae9556bc481b3b7ef9844482a13 /lib/index.js | |
parent | 1fdd8a761158517647633c488fa69950e0a8b443 (diff) | |
download | gitbook-5bd12692684cffc94ba8480f73358f4bf61b8997.zip gitbook-5bd12692684cffc94ba8480f73358f4bf61b8997.tar.gz gitbook-5bd12692684cffc94ba8480f73358f4bf61b8997.tar.bz2 |
Accept argument "log" from commands
Diffstat (limited to 'lib/index.js')
-rw-r--r-- | lib/index.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/index.js b/lib/index.js index 283b3c3..a2c8edf 100644 --- a/lib/index.js +++ b/lib/index.js @@ -21,7 +21,10 @@ module.exports = { }); var book = new Book(input, _.extend({}, { - 'output': output + 'config': { + 'output': output + }, + 'logLevel': Book.LOG_LEVELS[(kwargs.log || "info").toUpperCase()] })); return book.parse() |