Skip to content

Commit cafc000

Browse files
committed
Remove --all from cargo package.
1 parent 8b0671a commit cafc000

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/bin/cargo/commands/package.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ pub fn cli() -> App {
2828
.arg_target_triple("Build for the target triple")
2929
.arg_target_dir()
3030
.arg_features()
31-
.arg_package_spec(
31+
.arg_package_spec_no_all(
3232
"Package(s) to assemble",
3333
"Assemble all packages in the workspace",
3434
"Don't assemble specified packages",

src/cargo/util/command_prelude.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ pub type App = clap::App<'static, 'static>;
2727
pub trait AppExt: Sized {
2828
fn _arg(self, arg: Arg<'static, 'static>) -> Self;
2929

30+
/// Do not use this method, it is only for backwards compatibility.
31+
/// Use `arg_package_spec_no_all` instead.
3032
fn arg_package_spec(
3133
self,
3234
package: &'static str,

0 commit comments

Comments
 (0)