From b8d6e6ad28a116c9dff50e0e605189e2489afdba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bla=C5=BE=20Hrastnik?= Date: Mon, 31 May 2021 17:14:49 +0900 Subject: [PATCH] Allow setting verbosity to info again --- helix-term/src/main.rs | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/helix-term/src/main.rs b/helix-term/src/main.rs index 9ca5b067..ac060bbe 100644 --- a/helix-term/src/main.rs +++ b/helix-term/src/main.rs @@ -83,15 +83,18 @@ FLAGS: std::process::exit(0); } - let args = Args { - files: pargs.finish().into_iter().map(|arg| arg.into()).collect(), - }; + let mut verbosity: u64 = 0; - // let verbosity: u64 = args.occurrences_of("verbose"); - let verbosity: u64 = 0; + if pargs.contains("-v") { + verbosity = 1; + } setup_logging(verbosity).expect("failed to initialize logging."); + let args = Args { + files: pargs.finish().into_iter().map(|arg| arg.into()).collect(), + }; + // initialize language registry use helix_core::config_dir; use helix_core::syntax::{Loader, LOADER};