Allow setting verbosity to info again

This commit is contained in:
Blaž Hrastnik 2021-05-31 17:14:49 +09:00
parent 5825bce0e4
commit b8d6e6ad28

View file

@ -83,15 +83,18 @@ FLAGS:
std::process::exit(0);
}
let mut 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(),
};
// let verbosity: u64 = args.occurrences_of("verbose");
let verbosity: u64 = 0;
setup_logging(verbosity).expect("failed to initialize logging.");
// initialize language registry
use helix_core::config_dir;
use helix_core::syntax::{Loader, LOADER};