Skip to content

Commit

Permalink
Add short option
Browse files Browse the repository at this point in the history
  • Loading branch information
ilyagr committed Aug 6, 2024
1 parent 6b0add7 commit 2e5ad75
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cargo-insta/src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ struct TestRunnerOptions {
#[arg(long)]
target: Option<String>,
/// Do not run `cargo test --doc` after `cargo nextest`, even if test specifiers would otherwise include doctests.
#[arg(long)]
#[arg(long, short = 'N')]
disable_nextest_doctest: bool,
}

Expand Down Expand Up @@ -843,7 +843,7 @@ fn prepare_test_runner<'snapshot_ref>(
None
};
let mut prevents_doc_run = false;
if cmd.disable_nextest_doctest {
if cmd.test_runner_options.disable_nextest_doctest {
prevents_doc_run = true;
}
if cmd.target_args.all || cmd.target_args.workspace {
Expand Down

0 comments on commit 2e5ad75

Please sign in to comment.