Skip to content

Commit 8b7e7b8

Browse files
cardoenikomatsakis
authored andcommitted
fix help for the --print option
Since 8285ab5, which was merged in with rust-lang#38061, the help for the --print option is missing the surrounding [ ] around the possible options. Signed-off-by: Doug Goldstein <[email protected]>
1 parent 8b3311d commit 8b7e7b8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/librustc/session/config.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1172,7 +1172,8 @@ pub fn rustc_short_optgroups() -> Vec<RustcOptGroup> {
11721172
the compiler to emit",
11731173
"[asm|llvm-bc|llvm-ir|obj|link|dep-info]"),
11741174
opt::multi_s("", "print", "Comma separated list of compiler information to \
1175-
print on stdout", &print_opts.join("|")),
1175+
print on stdout", &format!("[{}]",
1176+
&print_opts.join("|"))),
11761177
opt::flagmulti_s("g", "", "Equivalent to -C debuginfo=2"),
11771178
opt::flagmulti_s("O", "", "Equivalent to -C opt-level=2"),
11781179
opt::opt_s("o", "", "Write output to <filename>", "FILENAME"),

0 commit comments

Comments
 (0)