mirror of
https://github.com/knex/knex.git
synced 2025-10-30 01:10:12 +00:00
[Knex CLI] Fix debug option doesn't work
This commit is contained in:
parent
d6dc4d2dee
commit
2577663667
@ -64,6 +64,8 @@ function initKnex(env) {
|
|||||||
process.exit(1);
|
process.exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (argv.debug !== undefined)
|
||||||
|
config.debug = argv.debug;
|
||||||
var knex = require(env.modulePath);
|
var knex = require(env.modulePath);
|
||||||
return knex(config);
|
return knex(config);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user