@@ -1138,6 +1138,10 @@ mod opt {
1138
1138
/// including metadata for each option, such as whether the option is
1139
1139
/// part of the stable long-term interface for rustc.
1140
1140
pub fn rustc_short_optgroups ( ) -> Vec < RustcOptGroup > {
1141
+ let mut print_opts = vec ! [ "crate-name" , "file-names" , "sysroot" , "cfg" ,
1142
+ "target-list" , "target-cpus" , "target-features" ,
1143
+ "relocation-models" , "code-models" ] ;
1144
+
1141
1145
vec ! [
1142
1146
opt:: flag_s( "h" , "help" , "Display this message" ) ,
1143
1147
opt:: multi_s( "" , "cfg" , "Configure the compilation environment" , "SPEC" ) ,
@@ -1157,9 +1161,7 @@ pub fn rustc_short_optgroups() -> Vec<RustcOptGroup> {
1157
1161
the compiler to emit",
1158
1162
"[asm|llvm-bc|llvm-ir|obj|link|dep-info]" ) ,
1159
1163
opt:: multi_s( "" , "print" , "Comma separated list of compiler information to \
1160
- print on stdout",
1161
- "[crate-name|file-names|sysroot|cfg|target-list|target-cpus|\
1162
- target-features|relocation-models|code-models]") ,
1164
+ print on stdout", & print_opts. join( "|" ) ) ,
1163
1165
opt:: flagmulti_s( "g" , "" , "Equivalent to -C debuginfo=2" ) ,
1164
1166
opt:: flagmulti_s( "O" , "" , "Equivalent to -C opt-level=2" ) ,
1165
1167
opt:: opt_s( "o" , "" , "Write output to <filename>" , "FILENAME" ) ,
0 commit comments