Allow setting verbosity to info again

imgbot
Blaž Hrastnik 4 years ago
parent 5825bce0e4
commit b8d6e6ad28

@ -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};

Loading…
Cancel
Save