|
|
@ -83,15 +83,18 @@ FLAGS:
|
|
|
|
std::process::exit(0);
|
|
|
|
std::process::exit(0);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
let args = Args {
|
|
|
|
let mut verbosity: u64 = 0;
|
|
|
|
files: pargs.finish().into_iter().map(|arg| arg.into()).collect(),
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// let verbosity: u64 = args.occurrences_of("verbose");
|
|
|
|
if pargs.contains("-v") {
|
|
|
|
let verbosity: u64 = 0;
|
|
|
|
verbosity = 1;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
setup_logging(verbosity).expect("failed to initialize logging.");
|
|
|
|
setup_logging(verbosity).expect("failed to initialize logging.");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
let args = Args {
|
|
|
|
|
|
|
|
files: pargs.finish().into_iter().map(|arg| arg.into()).collect(),
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
// initialize language registry
|
|
|
|
// initialize language registry
|
|
|
|
use helix_core::config_dir;
|
|
|
|
use helix_core::config_dir;
|
|
|
|
use helix_core::syntax::{Loader, LOADER};
|
|
|
|
use helix_core::syntax::{Loader, LOADER};
|
|
|
|