@@ -83,15 +83,18 @@ FLAGS:
83 std::process::exit(0);
83 std::process::exit(0);
86− let args = Args {
86+ let mut verbosity: u64 = 0;
87− files: pargs.finish().into_iter().map(|arg| arg.into()).collect(),
90− // let verbosity: u64 = args.occurrences_of("verbose");
88+ if pargs.contains("-v") {
91− let verbosity: u64 = 0;
89+ verbosity = 1;
93 setup_logging(verbosity).expect("failed to initialize logging.");
92 setup_logging(verbosity).expect("failed to initialize logging.");
95+ files: pargs.finish().into_iter().map(|arg| arg.into()).collect(),
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};