From 25776636676b2df9e9346b5b918fe0619b51f6a3 Mon Sep 17 00:00:00 2001 From: Yujie Zhou Date: Wed, 18 Feb 2015 13:09:45 +0800 Subject: [PATCH] [Knex CLI] Fix debug option doesn't work --- lib/bin/cli.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/bin/cli.js b/lib/bin/cli.js index 413f1b79..f0eca3db 100755 --- a/lib/bin/cli.js +++ b/lib/bin/cli.js @@ -64,6 +64,8 @@ function initKnex(env) { process.exit(1); } + if (argv.debug !== undefined) + config.debug = argv.debug; var knex = require(env.modulePath); return knex(config); }