From 031dd81cc886d689908625d49742606d0f1b82ca Mon Sep 17 00:00:00 2001 From: Doug Goldstein Date: Tue, 3 Jan 2017 23:44:10 -0600 Subject: [PATCH] fix help for the --print option Since 8285ab5c99, 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 --- src/librustc/session/config.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/librustc/session/config.rs b/src/librustc/session/config.rs index b3cb5ace45bc0..59bc001516c79 100644 --- a/src/librustc/session/config.rs +++ b/src/librustc/session/config.rs @@ -1182,7 +1182,8 @@ pub fn rustc_short_optgroups() -> Vec { 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"),