@@ -1565,7 +1565,7 @@ The default is {DEFAULT_EDITION} and the latest stable edition is {LATEST_STABLE
1565
1565
static PRINT_HELP : LazyLock < String > = LazyLock :: new ( || {
1566
1566
format ! (
1567
1567
"Compiler information to print on stdout (or to a file)\n \
1568
- INFO may be one of ({}) .",
1568
+ INFO may be one of <{}> .",
1569
1569
PRINT_KINDS . iter( ) . map( |( name, _) | format!( "{name}" ) ) . collect:: <Vec <_>>( ) . join( "|" )
1570
1570
)
1571
1571
} ) ;
@@ -1586,73 +1586,80 @@ pub fn rustc_optgroups() -> Vec<RustcOptGroup> {
1586
1586
"" ,
1587
1587
"cfg" ,
1588
1588
"Configure the compilation environment.\n \
1589
- SPEC supports the syntax `NAME[=\" VALUE\" ]`.",
1590
- "SPEC" ,
1589
+ SPEC supports the syntax `< NAME> [=\" VALUE\" ]`.",
1590
+ "< SPEC> " ,
1591
1591
) ,
1592
- opt( Stable , Multi , "" , "check-cfg" , "Provide list of expected cfgs for checking" , "SPEC" ) ,
1592
+ opt( Stable , Multi , "" , "check-cfg" , "Provide list of expected cfgs for checking" , "< SPEC> " ) ,
1593
1593
opt(
1594
1594
Stable ,
1595
1595
Multi ,
1596
1596
"L" ,
1597
1597
"" ,
1598
1598
"Add a directory to the library search path. \
1599
- The optional KIND can be one of dependency, crate, native, framework, or all (the default).",
1600
- "[KIND=] PATH" ,
1599
+ The optional < KIND> can be one of < dependency| crate| native| framework| all> ( default: all ).",
1600
+ "[< KIND>=]< PATH> " ,
1601
1601
) ,
1602
1602
opt(
1603
1603
Stable ,
1604
1604
Multi ,
1605
1605
"l" ,
1606
1606
"" ,
1607
1607
"Link the generated crate(s) to the specified native\n \
1608
- library NAME. The optional KIND can be one of\n \
1609
- static, framework, or dylib (the default).\n \
1610
- Optional comma separated MODIFIERS\n \
1611
- ( bundle|verbatim|whole-archive|as-needed) \n \
1608
+ library < NAME> . The optional < KIND> can be one of\n \
1609
+ < static| framework| dylib> ( default: dylib ).\n \
1610
+ Optional comma separated < MODIFIERS> \n \
1611
+ < bundle|verbatim|whole-archive|as-needed> \n \
1612
1612
may be specified each with a prefix of either '+' to\n \
1613
1613
enable or '-' to disable.",
1614
- "[KIND[: MODIFIERS]=]NAME[: RENAME]" ,
1614
+ "[< KIND>[:< MODIFIERS> ]=]< NAME>[:< RENAME> ]" ,
1615
1615
) ,
1616
1616
make_crate_type_option( ) ,
1617
- opt( Stable , Opt , "" , "crate-name" , "Specify the name of the crate being built" , "NAME" ) ,
1617
+ opt( Stable , Opt , "" , "crate-name" , "Specify the name of the crate being built" , "< NAME> " ) ,
1618
1618
opt( Stable , Opt , "" , "edition" , & EDITION_STRING , EDITION_NAME_LIST ) ,
1619
1619
opt(
1620
1620
Stable ,
1621
1621
Multi ,
1622
1622
"" ,
1623
1623
"emit" ,
1624
1624
"Comma separated list of types of output for the compiler to emit" ,
1625
- "[ asm|llvm-bc|llvm-ir|obj|metadata|link|dep-info|mir] " ,
1625
+ "< asm|llvm-bc|llvm-ir|obj|metadata|link|dep-info|mir> " ,
1626
1626
) ,
1627
- opt( Stable , Multi , "" , "print" , & PRINT_HELP , "INFO[= FILE]" ) ,
1627
+ opt( Stable , Multi , "" , "print" , & PRINT_HELP , "< INFO>[=< FILE> ]" ) ,
1628
1628
opt( Stable , FlagMulti , "g" , "" , "Equivalent to -C debuginfo=2" , "" ) ,
1629
1629
opt( Stable , FlagMulti , "O" , "" , "Equivalent to -C opt-level=3" , "" ) ,
1630
- opt( Stable , Opt , "o" , "" , "Write output to <filename>" , "FILENAME" ) ,
1631
- opt( Stable , Opt , "" , "out-dir" , "Write output to compiler-chosen filename in <dir>" , "DIR" ) ,
1630
+ opt( Stable , Opt , "o" , "" , "Write output to <FILENAME>" , "<FILENAME>" ) ,
1631
+ opt(
1632
+ Stable ,
1633
+ Opt ,
1634
+ "" ,
1635
+ "out-dir" ,
1636
+ "Write output to compiler-chosen filename in <DIR>" ,
1637
+ "<DIR>" ,
1638
+ ) ,
1632
1639
opt(
1633
1640
Stable ,
1634
1641
Opt ,
1635
1642
"" ,
1636
1643
"explain" ,
1637
1644
"Provide a detailed explanation of an error message" ,
1638
- "OPT" ,
1645
+ "< OPT> " ,
1639
1646
) ,
1640
1647
opt( Stable , Flag , "" , "test" , "Build a test harness" , "" ) ,
1641
- opt( Stable , Opt , "" , "target" , "Target triple for which the code is compiled" , "TARGET" ) ,
1642
- opt( Stable , Multi , "A" , "allow" , "Set lint allowed" , "LINT" ) ,
1643
- opt( Stable , Multi , "W" , "warn" , "Set lint warnings" , "LINT" ) ,
1644
- opt( Stable , Multi , "" , "force-warn" , "Set lint force-warn" , "LINT" ) ,
1645
- opt( Stable , Multi , "D" , "deny" , "Set lint denied" , "LINT" ) ,
1646
- opt( Stable , Multi , "F" , "forbid" , "Set lint forbidden" , "LINT" ) ,
1648
+ opt( Stable , Opt , "" , "target" , "Target triple for which the code is compiled" , "< TARGET> " ) ,
1649
+ opt( Stable , Multi , "A" , "allow" , "Set lint allowed" , "< LINT> " ) ,
1650
+ opt( Stable , Multi , "W" , "warn" , "Set lint warnings" , "< LINT> " ) ,
1651
+ opt( Stable , Multi , "" , "force-warn" , "Set lint force-warn" , "< LINT> " ) ,
1652
+ opt( Stable , Multi , "D" , "deny" , "Set lint denied" , "< LINT> " ) ,
1653
+ opt( Stable , Multi , "F" , "forbid" , "Set lint forbidden" , "< LINT> " ) ,
1647
1654
opt(
1648
1655
Stable ,
1649
1656
Multi ,
1650
1657
"" ,
1651
1658
"cap-lints" ,
1652
1659
"Set the most restrictive lint level. More restrictive lints are capped at this level" ,
1653
- "LEVEL" ,
1660
+ "< LEVEL> " ,
1654
1661
) ,
1655
- opt( Stable , Multi , "C" , "codegen" , "Set a codegen option" , "OPT[= VALUE]" ) ,
1662
+ opt( Stable , Multi , "C" , "codegen" , "Set a codegen option" , "< OPT>[=< VALUE> ]" ) ,
1656
1663
opt( Stable , Flag , "V" , "version" , "Print version info and exit" , "" ) ,
1657
1664
opt( Stable , Flag , "v" , "verbose" , "Use verbose output" , "" ) ,
1658
1665
] ;
@@ -1666,47 +1673,47 @@ pub fn rustc_optgroups() -> Vec<RustcOptGroup> {
1666
1673
"" ,
1667
1674
"extern" ,
1668
1675
"Specify where an external rust library is located" ,
1669
- "NAME[= PATH]" ,
1676
+ "< NAME>[=< PATH> ]" ,
1670
1677
) ,
1671
- opt ( Stable , Opt , "" , "sysroot" , "Override the system root" , "PATH" ) ,
1672
- opt ( Unstable , Multi , "Z" , "" , "Set unstable / perma-unstable options" , "FLAG" ) ,
1678
+ opt ( Stable , Opt , "" , "sysroot" , "Override the system root" , "< PATH> " ) ,
1679
+ opt ( Unstable , Multi , "Z" , "" , "Set unstable / perma-unstable options" , "< FLAG> " ) ,
1673
1680
opt (
1674
1681
Stable ,
1675
1682
Opt ,
1676
1683
"" ,
1677
1684
"error-format" ,
1678
1685
"How errors and other messages are produced" ,
1679
- "human|json|short" ,
1686
+ "< human|json|short> " ,
1680
1687
) ,
1681
- opt ( Stable , Multi , "" , "json" , "Configure the JSON output of the compiler" , "CONFIG" ) ,
1688
+ opt ( Stable , Multi , "" , "json" , "Configure the JSON output of the compiler" , "< CONFIG> " ) ,
1682
1689
opt (
1683
1690
Stable ,
1684
1691
Opt ,
1685
1692
"" ,
1686
1693
"color" ,
1687
1694
"Configure coloring of output:
1688
- auto = colorize, if output goes to a tty (default);
1689
- always = always colorize output;
1690
- never = never colorize output" ,
1691
- "auto|always|never" ,
1695
+ * auto = colorize, if output goes to a tty (default);
1696
+ * always = always colorize output;
1697
+ * never = never colorize output" ,
1698
+ "< auto|always|never> " ,
1692
1699
) ,
1693
1700
opt (
1694
1701
Stable ,
1695
1702
Opt ,
1696
1703
"" ,
1697
1704
"diagnostic-width" ,
1698
1705
"Inform rustc of the width of the output so that diagnostics can be truncated to fit" ,
1699
- "WIDTH" ,
1706
+ "< WIDTH> " ,
1700
1707
) ,
1701
1708
opt (
1702
1709
Stable ,
1703
1710
Multi ,
1704
1711
"" ,
1705
1712
"remap-path-prefix" ,
1706
1713
"Remap source names in all output (compiler messages and output files)" ,
1707
- "FROM=TO " ,
1714
+ "< FROM>=<TO> " ,
1708
1715
) ,
1709
- opt ( Unstable , Multi , "" , "env-set" , "Inject an environment variable" , "VAR= VALUE" ) ,
1716
+ opt ( Unstable , Multi , "" , "env-set" , "Inject an environment variable" , "< VAR>=< VALUE> " ) ,
1710
1717
] ;
1711
1718
options. extend ( verbose_only. into_iter ( ) . map ( |mut opt| {
1712
1719
opt. is_verbose_help_only = true ;
@@ -2706,7 +2713,7 @@ pub fn make_crate_type_option() -> RustcOptGroup {
2706
2713
"crate-type" ,
2707
2714
"Comma separated list of types of crates
2708
2715
for the compiler to emit" ,
2709
- "[ bin|lib|rlib|dylib|cdylib|staticlib|proc-macro] " ,
2716
+ "< bin|lib|rlib|dylib|cdylib|staticlib|proc-macro> " ,
2710
2717
)
2711
2718
}
2712
2719
0 commit comments