fixed filepath option dont work bug due to clap version up

This commit is contained in:
DustInDark
2022-06-19 11:29:18 +09:00
parent 049c05a335
commit 2a5d24a753

View File

@@ -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()