Mercurial > hg
diff rust/rhg/src/main.rs @ 45530:b1cea0dc9db0
rhg: Add debug timing
Differential Revision: https://phab.mercurial-scm.org/D8962
author | Antoine Cezar <antoine.cezar@octobus.net> |
---|---|
date | Wed, 23 Sep 2020 12:26:16 +0200 |
parents | f17caf8f3fef |
children | 2f8227a12592 |
line wrap: on
line diff
--- a/rust/rhg/src/main.rs Mon Aug 17 16:56:39 2020 +0200 +++ b/rust/rhg/src/main.rs Wed Sep 23 12:26:16 2020 +0200 @@ -1,3 +1,4 @@ +extern crate log; use clap::App; use clap::AppSettings; use clap::Arg; @@ -15,6 +16,7 @@ use error::CommandError; fn main() { + env_logger::init(); let app = App::new("rhg") .setting(AppSettings::AllowInvalidUtf8) .setting(AppSettings::SubcommandRequired)