Call init_logger after parsing the args.

This commit is contained in:
Philip Daniels 2020-06-25 11:16:22 +01:00
parent ebd5ec084f
commit 03142f5ec1
1 changed files with 3 additions and 1 deletions

View File

@ -5,7 +5,9 @@ extern crate watchexec;
use watchexec::{cli, error, run};
fn main() -> error::Result<()> {
run(cli::get_args()?)
let args = cli::get_args()?;
init_logger(args.debug);
run(args)
}
fn init_logger(debug: bool) {