Skip to content

Commit

Permalink
chg: require -o when tab-separator
Browse files Browse the repository at this point in the history
  • Loading branch information
fukusuket committed Feb 18, 2025
1 parent f275835 commit 420785a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/detections/configs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1328,7 +1328,7 @@ pub struct SearchOption {
pub multiline: bool,

/// Separate event field information by tabs
#[arg(help_heading = Some("Output"), short = 'S', long="tab-separator", display_order = 490)]
#[arg(help_heading = Some("Output"), short = 'S', long="tab-separator", requires = "output", display_order = 490)]
pub tab_separator: bool,

/// Overwrite files when saving
Expand Down Expand Up @@ -1776,7 +1776,7 @@ pub struct CsvOutputOption {
pub multiline: bool,

/// Separate event field information by tabs
#[arg(help_heading = Some("Output"), short = 'S', long="tab-separator", display_order = 490)]
#[arg(help_heading = Some("Output"), short = 'S', long="tab-separator", requires = "output", display_order = 490)]
pub tab_separator: bool,

// display_order value is defined acronym of long option (A=10,B=20,...,Z=260,a=270, b=280...,z=520)
Expand Down Expand Up @@ -1901,7 +1901,7 @@ pub struct LogMetricsOption {
pub time_format_options: TimeFormatOptions,

/// Output event field information in multiple rows for CSV output
#[arg(help_heading = Some("Output"), short = 'M', long="multiline", display_order = 390)]
#[arg(help_heading = Some("Output"), short = 'M', long="multiline", requires = "output", display_order = 390)]
pub multiline: bool,

/// Separate event field information by tabs
Expand Down

0 comments on commit 420785a

Please sign in to comment.