Skip to content

Commit

Permalink
fix(configs): added input file option filter to require #1235
Browse files Browse the repository at this point in the history
  • Loading branch information
hitenkoku committed Dec 21, 2023
1 parent 3d71dae commit 119f0a1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/detections/configs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1182,6 +1182,7 @@ pub struct EidMetricsOption {
}

#[derive(Args, Clone, Debug)]
#[clap(group(ArgGroup::new("input_filtering").args(["directory", "filepath", "live_analysis"]).required(true)))]
#[clap(group(ArgGroup::new("level_rule_filtering").args(["min_level", "exact_level"]).multiple(false)))]
pub struct PivotKeywordOption {
#[clap(flatten)]
Expand Down Expand Up @@ -1525,6 +1526,7 @@ pub struct CommonOptions {
}

#[derive(Args, Clone, Debug)]
#[clap(group(ArgGroup::new("input_filtering").args(["directory", "filepath", "live_analysis"]).required(true)))]
pub struct InputOption {
/// Directory of multiple .evtx files
#[arg(help_heading = Some("Input"), short = 'd', long, value_name = "DIR", conflicts_with_all = ["filepath", "live_analysis"], display_order = 300)]
Expand Down

0 comments on commit 119f0a1

Please sign in to comment.