Skip to content

Commit 2e5ad75

Browse files
committed
Add short option
1 parent 6b0add7 commit 2e5ad75

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

@@ -843,7 +843,7 @@ fn prepare_test_runner<'snapshot_ref>(
843843
None
844844
};
845845
let mut prevents_doc_run = false;
846-
if cmd.disable_nextest_doctest {
846+
if cmd.test_runner_options.disable_nextest_doctest {
847847
prevents_doc_run = true;
848848
}
849849
if cmd.target_args.all || cmd.target_args.workspace {

0 commit comments

Comments
 (0)