fixed error when invalid profile name
This commit is contained in:
@@ -21,6 +21,7 @@ use hayabusa::detections::pivot::PivotKeyword;
|
||||
use hayabusa::detections::pivot::PIVOT_KEYWORD;
|
||||
use hayabusa::detections::rule::{get_detection_keys, RuleNode};
|
||||
use hayabusa::omikuji::Omikuji;
|
||||
use hayabusa::options::profile::PROFILES;
|
||||
use hayabusa::options::{level_tuning::LevelTuning, update_rules::UpdateRules};
|
||||
use hayabusa::{afterfact::after_fact, detections::utils};
|
||||
use hayabusa::{detections::configs, timeline::timelines::Timeline};
|
||||
@@ -87,7 +88,9 @@ impl App {
|
||||
.unwrap(),
|
||||
);
|
||||
}
|
||||
|
||||
if PROFILES.is_none() {
|
||||
return;
|
||||
}
|
||||
let analysis_start_time: DateTime<Local> = Local::now();
|
||||
// Show usage when no arguments.
|
||||
if std::env::args().len() == 1 {
|
||||
|
||||
Reference in New Issue
Block a user