diff --git a/src/bin/cargo/cli.rs b/src/bin/cargo/cli.rs index eb337d681ce0..d1ca475f4404 100644 --- a/src/bin/cargo/cli.rs +++ b/src/bin/cargo/cli.rs @@ -564,7 +564,13 @@ See 'cargo help ' for more information on a specific command.\n", ) .arg(flag("version", "Print version info and exit").short('V')) .arg(flag("list", "List installed commands")) - .arg(opt("explain", "Run `rustc --explain CODE`").value_name("CODE")) + .arg( + opt( + "explain", + "Provide a detailed explanation of a rustc error message", + ) + .value_name("CODE"), + ) .arg( opt( "verbose", diff --git a/tests/testsuite/cargo/help/stdout.log b/tests/testsuite/cargo/help/stdout.log index 26bcd745bd60..0ae50d0e43ca 100644 --- a/tests/testsuite/cargo/help/stdout.log +++ b/tests/testsuite/cargo/help/stdout.log @@ -6,7 +6,7 @@ Usage: cargo [..][OPTIONS] [COMMAND] Options: -V, --version Print version info and exit --list List installed commands - --explain Run `rustc --explain CODE` + --explain Provide a detailed explanation of a rustc error message -v, --verbose... Use verbose output (-vv very verbose/build.rs output) -q, --quiet Do not print cargo log messages --color Coloring: auto, always, never