Skip to content

Commit 893e07e

Browse files
Add doc for --nocapture
1 parent 111cca1 commit 893e07e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/doc/rustdoc/src/command-line-arguments.md

+7
Original file line numberDiff line numberDiff line change
@@ -417,3 +417,10 @@ This flag is **deprecated** and **has no effect**.
417417
Rustdoc only supports Rust source code and Markdown input formats. If the
418418
file ends in `.md` or `.markdown`, `rustdoc` treats it as a Markdown file.
419419
Otherwise, it assumes that the input file is Rust.
420+
421+
## `--nocapture`
422+
423+
When this flag is used with `--test`, the output (stdout and stderr) of your tests won't be
424+
captured by rustdoc. Instead, the output will be directed to your terminal,
425+
as if you had run the test executable manually. This is especially useful
426+
for debugging your tests!

0 commit comments

Comments
 (0)