use std::env;
use std::process;
use sp_grep::Config;
fn main() {
let exist_variable: bool = env::var("SP_ENV_VARIABLE").is_err();
println!("exist_variable ? : \n {} ", exist_variable);
let config = Config::new(env::args()).unwrap_or_else(|err| {
eprintln!("Error In Parsing Args \n {} ", err);
process::exit(1);
});
if let Err(e) = sp_grep::run(config) {
eprintln!("Application Error: {}", e);
process::exit(1);
}
}