Skip to content

Commit 8306410

Browse files
committed
Remove duplicated code in arg_package_spec.
1 parent cafc000 commit 8306410

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/cargo/util/command_prelude.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,8 @@ pub trait AppExt: Sized {
3535
all: &'static str,
3636
exclude: &'static str,
3737
) -> Self {
38-
self.arg_package_spec_simple(package)
38+
self.arg_package_spec_no_all(package, all, exclude)
3939
._arg(opt("all", "Alias for --workspace (deprecated)"))
40-
._arg(opt("workspace", all))
41-
._arg(multi_opt("exclude", "SPEC", exclude))
4240
}
4341

4442
/// Variant of arg_package_spec that does not include the `--all` flag

0 commit comments

Comments
 (0)