Skip to content

Commit

Permalink
Rollup merge of rust-lang#38815 - cardoe:fix-print, r=nikomatsakis
Browse files Browse the repository at this point in the history
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 <cardoe@cardoe.com>
  • Loading branch information
steveklabnik committed Jan 4, 2017
2 parents 1d72dd9 + 031dd81 commit e9068c6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/librustc/session/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1182,7 +1182,8 @@ pub fn rustc_short_optgroups() -> Vec<RustcOptGroup> {
the compiler to emit",
"[asm|llvm-bc|llvm-ir|obj|metadata|link|dep-info]"),
opt::multi_s("", "print", "Comma separated list of compiler information to \
print on stdout", &print_opts.join("|")),
print on stdout", &format!("[{}]",
&print_opts.join("|"))),
opt::flagmulti_s("g", "", "Equivalent to -C debuginfo=2"),
opt::flagmulti_s("O", "", "Equivalent to -C opt-level=2"),
opt::opt_s("o", "", "Write output to <filename>", "FILENAME"),
Expand Down

0 comments on commit e9068c6

Please sign in to comment.