Skip to content

Commit 7c193c6

Browse files
committed
cargo-insta --disable-nextest-doctest: Add -N short option
I'm not sure how appropriate this is for general use, but it's convenient if, like me, you have a project where you use this all the time.
1 parent 4cde386 commit 7c193c6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cargo-insta/src/cli.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ struct TestRunnerOptions {
171171
#[arg(long)]
172172
target: Option<String>,
173173
/// Do not run `cargo test --doc` after `cargo nextest`, even if test specifiers would otherwise include doctests.
174-
#[arg(long)]
174+
#[arg(long, short = 'N')]
175175
disable_nextest_doctest: bool,
176176
}
177177

@@ -882,7 +882,7 @@ fn prepare_test_runner<'snapshot_ref>(
882882
None
883883
};
884884
let mut prevents_doc_run = false;
885-
if cmd.disable_nextest_doctest {
885+
if cmd.test_runner_options.disable_nextest_doctest {
886886
prevents_doc_run = true;
887887
}
888888
if cmd.target_args.all || cmd.target_args.workspace {

0 commit comments

Comments
 (0)