diff options
| author | Urgau <urgau@numericable.fr> | 2024-05-01 23:42:59 +0200 |
|---|---|---|
| committer | Urgau <urgau@numericable.fr> | 2024-05-04 17:52:35 +0200 |
| commit | 1193e965a3d3169f5543e5f5de680a4b9feea1d9 (patch) | |
| tree | 30bd3029de0f3cac1252fd968262f03ce990364b /src/doc/rustdoc | |
| parent | c773b19540a30a6ffa80ec11c1013616b99c2633 (diff) | |
Add `-` (stdin) support to rustdoc
Diffstat (limited to 'src/doc/rustdoc')
| -rw-r--r-- | src/doc/rustdoc/src/command-line-arguments.md | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/doc/rustdoc/src/command-line-arguments.md b/src/doc/rustdoc/src/command-line-arguments.md index 822f341b370..9edfb873f0b 100644 --- a/src/doc/rustdoc/src/command-line-arguments.md +++ b/src/doc/rustdoc/src/command-line-arguments.md @@ -417,6 +417,12 @@ When `rustdoc` receives this flag, it will print an extra "Version (version)" in the crate root's docs. You can use this flag to differentiate between different versions of your library's documentation. +## `-`: load source code from the standard input + +If you specify `-` as the INPUT on the command line, then `rustdoc` will read the +source code from stdin (standard input stream) until the EOF, instead of the file +system with an otherwise specified path. + ## `@path`: load command-line flags from a path If you specify `@path` on the command-line, then it will open `path` and read |
