Call init_logger after parsing the args.
This commit is contained in:
parent
ebd5ec084f
commit
03142f5ec1
|
@ -5,7 +5,9 @@ extern crate watchexec;
|
||||||
use watchexec::{cli, error, run};
|
use watchexec::{cli, error, run};
|
||||||
|
|
||||||
fn main() -> error::Result<()> {
|
fn main() -> error::Result<()> {
|
||||||
run(cli::get_args()?)
|
let args = cli::get_args()?;
|
||||||
|
init_logger(args.debug);
|
||||||
|
run(args)
|
||||||
}
|
}
|
||||||
|
|
||||||
fn init_logger(debug: bool) {
|
fn init_logger(debug: bool) {
|
||||||
|
|
Loading…
Reference in New Issue