Skip to content

Commit

Permalink
Add no-op args to support IntelliJ Rust
Browse files Browse the repository at this point in the history
  • Loading branch information
t-moe authored and LukasKalbertodt committed Jan 14, 2024
1 parent 42d92c4 commit 70cdc55
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/args.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,14 @@ pub struct Arguments {
#[arg(long = "nocapture", help = "No-op (libtest-mimic always runs in no-capture mode)")]
pub nocapture: bool,

/// No-op, ignored. libtest-mimic does not currently capture stdout.
#[arg(long = "show-output")]
pub show_output: bool,

/// No-op, ignored. Flag only exists for CLI compatibility with libtest.
#[arg(short = 'Z')]
pub unstable_flags: Option<UnstableFlags>,

/// If set, filters are matched exactly rather than by substring.
#[arg(
long = "exact",
Expand Down Expand Up @@ -169,6 +177,12 @@ impl Default for ColorSetting {
}
}

/// Possible values for the `-Z` option
#[derive(Debug, Clone, Copy, PartialEq, Eq, ValueEnum)]
pub enum UnstableFlags {
UnstableOptions,
}

/// Possible values for the `--format` option.
#[derive(Debug, Clone, Copy, PartialEq, Eq, ValueEnum)]
pub enum FormatSetting {
Expand Down

0 comments on commit 70cdc55

Please sign in to comment.