mirror of
https://github.com/watchexec/watchexec.git
synced 2024-11-16 09:08:37 +01:00
Call init_logger after parsing the args.
This commit is contained in:
parent
ebd5ec084f
commit
03142f5ec1
1 changed files with 3 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue