Call init_logger after parsing the args.
@@ -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) {
