Skip to content

Commit 373efe8

Browse files
committed
Auto merge of #38815 - cardoe:fix-print, r=nikomatsakis
fix help for the --print option Since 8285ab5, which was merged in with #38061, the help for the --print option is missing the surrounding [ ] around the possible options. Signed-off-by: Doug Goldstein <[email protected]>
2 parents e447b73 + 031dd81 commit 373efe8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/librustc/session/config.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -1182,7 +1182,8 @@ pub fn rustc_short_optgroups() -> Vec<RustcOptGroup> {
11821182
the compiler to emit",
11831183
"[asm|llvm-bc|llvm-ir|obj|metadata|link|dep-info]"),
11841184
opt::multi_s("", "print", "Comma separated list of compiler information to \
1185-
print on stdout", &print_opts.join("|")),
1185+
print on stdout", &format!("[{}]",
1186+
&print_opts.join("|"))),
11861187
opt::flagmulti_s("g", "", "Equivalent to -C debuginfo=2"),
11871188
opt::flagmulti_s("O", "", "Equivalent to -C opt-level=2"),
11881189
opt::opt_s("o", "", "Write output to <filename>", "FILENAME"),

0 commit comments

Comments
 (0)