[Knex CLI] Fix debug option doesn't work

This commit is contained in:
Yujie Zhou 2015-02-18 13:09:45 +08:00
parent d6dc4d2dee
commit 2577663667

View File

@ -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);
}