Skip to content

Commit 01daf90

Browse files
committed
Add usage documentation for --print cfg
The `--print` flag was extended in rust-lang#31278 to accept `cfg`, but the usage message was not updated.
1 parent b9e61c9 commit 01daf90

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc/session/config.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -887,7 +887,7 @@ pub fn rustc_short_optgroups() -> Vec<RustcOptGroup> {
887887
"[asm|llvm-bc|llvm-ir|obj|link|dep-info]"),
888888
opt::multi_s("", "print", "Comma separated list of compiler information to \
889889
print on stdout",
890-
"[crate-name|file-names|sysroot|target-list]"),
890+
"[crate-name|file-names|sysroot|cfg|target-list]"),
891891
opt::flagmulti_s("g", "", "Equivalent to -C debuginfo=2"),
892892
opt::flagmulti_s("O", "", "Equivalent to -C opt-level=2"),
893893
opt::opt_s("o", "", "Write output to <filename>", "FILENAME"),

0 commit comments

Comments
 (0)