diff --git a/src/bin/cargo/commands/publish.rs b/src/bin/cargo/commands/publish.rs index df1c4654ffe..c56cc7b45af 100644 --- a/src/bin/cargo/commands/publish.rs +++ b/src/bin/cargo/commands/publish.rs @@ -18,7 +18,11 @@ pub fn cli() -> Command { "Allow dirty working directories to be packaged", )) .arg_silent_suggestion() - .arg_package("Package to publish") + .arg_package_spec_no_all( + "Package(s) to publish", + "Publish all packages in the workspace (requires nightly)", + "Don't publish specified packages (requires nightly)", + ) .arg_features() .arg_parallel() .arg_target_triple("Build for the target triple") diff --git a/tests/testsuite/cargo_publish/help/stdout.term.svg b/tests/testsuite/cargo_publish/help/stdout.term.svg index c678fe8f83c..a1e8e3f4e55 100644 --- a/tests/testsuite/cargo_publish/help/stdout.term.svg +++ b/tests/testsuite/cargo_publish/help/stdout.term.svg @@ -1,4 +1,4 @@ - +