Skip to content

Commit 0bd1f71

Browse files
committed
Auto merge of #12593 - epage:help-list, r=ehuss
fix(help): Provide better commands heading for styling In working on #12578, I felt it would be weird to style the entire statement about commands but it also felt weird to not style it. So this change explores an alternatively way of communicating the information.
2 parents 743d4ab + 31e414c commit 0bd1f71

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/bin/cargo/cli.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -542,7 +542,7 @@ Usage: {usage}
542542
Options:
543543
{options}
544544
545-
Some common cargo commands are (see all commands with --list):
545+
Commands:
546546
build, b Compile the current package
547547
check, c Analyze the current package and report errors, but don't build object files
548548
clean Remove the target directory
@@ -559,6 +559,7 @@ Some common cargo commands are (see all commands with --list):
559559
publish Package and upload this package to the registry
560560
install Install a Rust binary. Default location is $HOME/.cargo/bin
561561
uninstall Uninstall a Rust binary
562+
... See all commands with --list
562563
563564
See 'cargo help <command>' for more information on a specific command.\n",
564565
)

tests/testsuite/cargo/help/stdout.log

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Options:
1818
-Z <FLAG> Unstable (nightly-only) flags to Cargo, see 'cargo -Z help' for details
1919
-h, --help Print help
2020

21-
Some common cargo commands are (see all commands with --list):
21+
Commands:
2222
build, b Compile the current package
2323
check, c Analyze the current package and report errors, but don't build object files
2424
clean Remove the target directory
@@ -35,5 +35,6 @@ Some common cargo commands are (see all commands with --list):
3535
publish Package and upload this package to the registry
3636
install Install a Rust binary. Default location is $HOME/.cargo/bin
3737
uninstall Uninstall a Rust binary
38+
... See all commands with --list
3839

3940
See 'cargo help <command>' for more information on a specific command.

0 commit comments

Comments
 (0)