Skip to content

Commit

Permalink
Auto merge of #12593 - epage:help-list, r=ehuss
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
bors committed Aug 30, 2023
2 parents 743d4ab + 31e414c commit 0bd1f71
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/bin/cargo/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -542,7 +542,7 @@ Usage: {usage}
Options:
{options}
Some common cargo commands are (see all commands with --list):
Commands:
build, b Compile the current package
check, c Analyze the current package and report errors, but don't build object files
clean Remove the target directory
Expand All @@ -559,6 +559,7 @@ Some common cargo commands are (see all commands with --list):
publish Package and upload this package to the registry
install Install a Rust binary. Default location is $HOME/.cargo/bin
uninstall Uninstall a Rust binary
... See all commands with --list
See 'cargo help <command>' for more information on a specific command.\n",
)
Expand Down
3 changes: 2 additions & 1 deletion tests/testsuite/cargo/help/stdout.log
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Options:
-Z <FLAG> Unstable (nightly-only) flags to Cargo, see 'cargo -Z help' for details
-h, --help Print help

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

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

0 comments on commit 0bd1f71

Please sign in to comment.