@@ -1646,7 +1646,7 @@ The default is {DEFAULT_EDITION} and the latest stable edition is {LATEST_STABLE
16461646static PRINT_HELP : LazyLock < String > = LazyLock :: new ( || {
16471647 format ! (
16481648 "Compiler information to print on stdout (or to a file)\n \
1649- INFO may be one of ({}) .",
1649+ INFO may be one of <{}> .",
16501650 PRINT_KINDS . iter( ) . map( |( name, _) | format!( "{name}" ) ) . collect:: <Vec <_>>( ) . join( "|" )
16511651 )
16521652} ) ;
@@ -1679,18 +1679,18 @@ pub fn rustc_optgroups() -> Vec<RustcOptGroup> {
16791679 "" ,
16801680 "cfg" ,
16811681 "Configure the compilation environment.\n \
1682- SPEC supports the syntax `NAME[=\" VALUE\" ]`.",
1683- "SPEC" ,
1682+ SPEC supports the syntax `< NAME> [=\" < VALUE> \" ]`.",
1683+ "< SPEC> " ,
16841684 ) ,
1685- opt( Stable , Multi , "" , "check-cfg" , "Provide list of expected cfgs for checking" , "SPEC" ) ,
1685+ opt( Stable , Multi , "" , "check-cfg" , "Provide list of expected cfgs for checking" , "< SPEC> " ) ,
16861686 opt(
16871687 Stable ,
16881688 Multi ,
16891689 "L" ,
16901690 "" ,
16911691 "Add a directory to the library search path. \
1692- The optional KIND can be one of dependency, crate, native, framework, or all (the default).",
1693- "[KIND=] PATH" ,
1692+ The optional KIND can be one of < dependency| crate| native| framework| all> ( default: all ).",
1693+ "[< KIND>=]< PATH> " ,
16941694 ) ,
16951695 opt(
16961696 Stable ,
@@ -1699,46 +1699,46 @@ pub fn rustc_optgroups() -> Vec<RustcOptGroup> {
16991699 "" ,
17001700 "Link the generated crate(s) to the specified native\n \
17011701 library NAME. The optional KIND can be one of\n \
1702- static, framework, or dylib (the default).\n \
1702+ < static| framework| dylib> ( default: dylib ).\n \
17031703 Optional comma separated MODIFIERS\n \
1704- ( bundle|verbatim|whole-archive|as-needed) \n \
1704+ < bundle|verbatim|whole-archive|as-needed> \n \
17051705 may be specified each with a prefix of either '+' to\n \
17061706 enable or '-' to disable.",
1707- "[KIND[: MODIFIERS]=]NAME[: RENAME]" ,
1707+ "[< KIND>[:< MODIFIERS> ]=]< NAME>[:< RENAME> ]" ,
17081708 ) ,
17091709 make_crate_type_option( ) ,
1710- opt( Stable , Opt , "" , "crate-name" , "Specify the name of the crate being built" , "NAME" ) ,
1710+ opt( Stable , Opt , "" , "crate-name" , "Specify the name of the crate being built" , "< NAME> " ) ,
17111711 opt( Stable , Opt , "" , "edition" , & EDITION_STRING , EDITION_NAME_LIST ) ,
1712- opt( Stable , Multi , "" , "emit" , & EMIT_HELP , "TYPE[= FILE]" ) ,
1713- opt( Stable , Multi , "" , "print" , & PRINT_HELP , "INFO[= FILE]" ) ,
1712+ opt( Stable , Multi , "" , "emit" , & EMIT_HELP , "< TYPE>[=< FILE> ]" ) ,
1713+ opt( Stable , Multi , "" , "print" , & PRINT_HELP , "< INFO>[=< FILE> ]" ) ,
17141714 opt( Stable , FlagMulti , "g" , "" , "Equivalent to -C debuginfo=2" , "" ) ,
17151715 opt( Stable , FlagMulti , "O" , "" , "Equivalent to -C opt-level=3" , "" ) ,
1716- opt( Stable , Opt , "o" , "" , "Write output to <filename> " , "FILENAME" ) ,
1717- opt( Stable , Opt , "" , "out-dir" , "Write output to compiler-chosen filename in <dir> " , "DIR" ) ,
1716+ opt( Stable , Opt , "o" , "" , "Write output to FILENAME " , "< FILENAME> " ) ,
1717+ opt( Stable , Opt , "" , "out-dir" , "Write output to compiler-chosen filename in DIR " , "< DIR> " ) ,
17181718 opt(
17191719 Stable ,
17201720 Opt ,
17211721 "" ,
17221722 "explain" ,
17231723 "Provide a detailed explanation of an error message" ,
1724- "OPT" ,
1724+ "< OPT> " ,
17251725 ) ,
17261726 opt( Stable , Flag , "" , "test" , "Build a test harness" , "" ) ,
1727- opt( Stable , Opt , "" , "target" , "Target triple for which the code is compiled" , "TARGET" ) ,
1728- opt( Stable , Multi , "A" , "allow" , "Set lint allowed" , "LINT" ) ,
1729- opt( Stable , Multi , "W" , "warn" , "Set lint warnings" , "LINT" ) ,
1730- opt( Stable , Multi , "" , "force-warn" , "Set lint force-warn" , "LINT" ) ,
1731- opt( Stable , Multi , "D" , "deny" , "Set lint denied" , "LINT" ) ,
1732- opt( Stable , Multi , "F" , "forbid" , "Set lint forbidden" , "LINT" ) ,
1727+ opt( Stable , Opt , "" , "target" , "Target triple for which the code is compiled" , "< TARGET> " ) ,
1728+ opt( Stable , Multi , "A" , "allow" , "Set lint allowed" , "< LINT> " ) ,
1729+ opt( Stable , Multi , "W" , "warn" , "Set lint warnings" , "< LINT> " ) ,
1730+ opt( Stable , Multi , "" , "force-warn" , "Set lint force-warn" , "< LINT> " ) ,
1731+ opt( Stable , Multi , "D" , "deny" , "Set lint denied" , "< LINT> " ) ,
1732+ opt( Stable , Multi , "F" , "forbid" , "Set lint forbidden" , "< LINT> " ) ,
17331733 opt(
17341734 Stable ,
17351735 Multi ,
17361736 "" ,
17371737 "cap-lints" ,
17381738 "Set the most restrictive lint level. More restrictive lints are capped at this level" ,
1739- "LEVEL" ,
1739+ "< LEVEL> " ,
17401740 ) ,
1741- opt( Stable , Multi , "C" , "codegen" , "Set a codegen option" , "OPT[= VALUE]" ) ,
1741+ opt( Stable , Multi , "C" , "codegen" , "Set a codegen option" , "< OPT>[=< VALUE> ]" ) ,
17421742 opt( Stable , Flag , "V" , "version" , "Print version info and exit" , "" ) ,
17431743 opt( Stable , Flag , "v" , "verbose" , "Use verbose output" , "" ) ,
17441744 ] ;
@@ -1752,47 +1752,47 @@ pub fn rustc_optgroups() -> Vec<RustcOptGroup> {
17521752 "" ,
17531753 "extern" ,
17541754 "Specify where an external rust library is located" ,
1755- "NAME[= PATH]" ,
1755+ "< NAME>[=< PATH> ]" ,
17561756 ) ,
1757- opt ( Stable , Opt , "" , "sysroot" , "Override the system root" , "PATH" ) ,
1758- opt ( Unstable , Multi , "Z" , "" , "Set unstable / perma-unstable options" , "FLAG" ) ,
1757+ opt ( Stable , Opt , "" , "sysroot" , "Override the system root" , "< PATH> " ) ,
1758+ opt ( Unstable , Multi , "Z" , "" , "Set unstable / perma-unstable options" , "< FLAG> " ) ,
17591759 opt (
17601760 Stable ,
17611761 Opt ,
17621762 "" ,
17631763 "error-format" ,
17641764 "How errors and other messages are produced" ,
1765- "human|json|short" ,
1765+ "< human|json|short> " ,
17661766 ) ,
1767- opt ( Stable , Multi , "" , "json" , "Configure the JSON output of the compiler" , "CONFIG" ) ,
1767+ opt ( Stable , Multi , "" , "json" , "Configure the JSON output of the compiler" , "< CONFIG> " ) ,
17681768 opt (
17691769 Stable ,
17701770 Opt ,
17711771 "" ,
17721772 "color" ,
17731773 "Configure coloring of output:
1774- auto = colorize, if output goes to a tty (default);
1775- always = always colorize output;
1776- never = never colorize output" ,
1777- "auto|always|never" ,
1774+ * auto = colorize, if output goes to a tty (default);
1775+ * always = always colorize output;
1776+ * never = never colorize output" ,
1777+ "< auto|always|never> " ,
17781778 ) ,
17791779 opt (
17801780 Stable ,
17811781 Opt ,
17821782 "" ,
17831783 "diagnostic-width" ,
17841784 "Inform rustc of the width of the output so that diagnostics can be truncated to fit" ,
1785- "WIDTH" ,
1785+ "< WIDTH> " ,
17861786 ) ,
17871787 opt (
17881788 Stable ,
17891789 Multi ,
17901790 "" ,
17911791 "remap-path-prefix" ,
17921792 "Remap source names in all output (compiler messages and output files)" ,
1793- "FROM=TO " ,
1793+ "< FROM>=<TO> " ,
17941794 ) ,
1795- opt ( Unstable , Multi , "" , "env-set" , "Inject an environment variable" , "VAR= VALUE" ) ,
1795+ opt ( Unstable , Multi , "" , "env-set" , "Inject an environment variable" , "< VAR>=< VALUE> " ) ,
17961796 ] ;
17971797 options. extend ( verbose_only. into_iter ( ) . map ( |mut opt| {
17981798 opt. is_verbose_help_only = true ;
@@ -2792,7 +2792,7 @@ pub fn make_crate_type_option() -> RustcOptGroup {
27922792 "crate-type" ,
27932793 "Comma separated list of types of crates
27942794 for the compiler to emit" ,
2795- "[ bin|lib|rlib|dylib|cdylib|staticlib|proc-macro] " ,
2795+ "< bin|lib|rlib|dylib|cdylib|staticlib|proc-macro> " ,
27962796 )
27972797}
27982798
0 commit comments