Skip to content

Commit f327355

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 72fad14 commit f327355

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
@@ -174,7 +174,7 @@ struct TestRunnerOptions {
174174
#[arg(long)]
175175
target: Option<String>,
176176
/// Do not run `cargo test --doc` after `cargo nextest`, even if test specifiers would otherwise include doctests.
177-
#[arg(long)]
177+
#[arg(long, short = 'N')]
178178
disable_nextest_doctest: bool,
179179
}
180180

@@ -961,7 +961,7 @@ fn prepare_test_runner<'snapshot_ref>(
961961
None
962962
};
963963
let mut prevents_doc_run = false;
964-
if cmd.disable_nextest_doctest {
964+
if cmd.test_runner_options.disable_nextest_doctest {
965965
prevents_doc_run = true;
966966
}
967967
if cmd.target_args.all || cmd.target_args.workspace {

0 commit comments

Comments
 (0)