on master help sign in
Allow setting verbosity to info again
b8d6e6aBlaž Hrastnik
helix-term/src/main.rs+8−5
@@ -83,15 +83,18 @@ FLAGS:
83 std::process::exit(0);
83 std::process::exit(0);
84 }
84 }
85
85
86− let args = Args {
86+ let mut verbosity: u64 = 0;
87− files: pargs.finish().into_iter().map(|arg| arg.into()).collect(),
88− };
89
87
90− // let verbosity: u64 = args.occurrences_of("verbose");
88+ if pargs.contains("-v") {
91− let verbosity: u64 = 0;
89+ verbosity = 1;
90+ }
92
91
93 setup_logging(verbosity).expect("failed to initialize logging.");
92 setup_logging(verbosity).expect("failed to initialize logging.");
94
93
94+ let args = Args {
95+ files: pargs.finish().into_iter().map(|arg| arg.into()).collect(),
96+ };
97+
95 // initialize language registry
98 // initialize language registry
96 use helix_core::config_dir;
99 use helix_core::config_dir;
97 use helix_core::syntax::{Loader, LOADER};
100 use helix_core::syntax::{Loader, LOADER};