From 03142f5ec1d82fea0e2021c7cdd4220b233919e8 Mon Sep 17 00:00:00 2001 From: Philip Daniels Date: Thu, 25 Jun 2020 11:16:22 +0100 Subject: [PATCH] Call init_logger after parsing the args. --- src/main.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 4004599..b92dda4 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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) {