From 2a5d24a7532826463ef120b01b826baf2dfed4b5 Mon Sep 17 00:00:00 2001 From: DustInDark Date: Sun, 19 Jun 2022 11:29:18 +0900 Subject: [PATCH] fixed filepath option dont work bug due to clap version up --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index d0206ba6..fcd72e05 100644 --- a/src/main.rs +++ b/src/main.rs @@ -193,7 +193,7 @@ impl App { } self.analysis_files(live_analysis_list.unwrap(), &time_filter); } else if let Some(filepath) = &configs::CONFIG.read().unwrap().args.filepath { - if !filepath.ends_with(".evtx") + if filepath.extension().unwrap_or_else(|| OsStr::new(".")) != "evtx" || filepath .as_path() .file_stem()