We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c347745 commit cc6b437Copy full SHA for cc6b437
src/bin/cargo/commands/uninstall.rs
@@ -15,6 +15,14 @@ pub fn cli() -> App {
15
16
pub fn exec(config: &mut Config, args: &ArgMatches<'_>) -> CliResult {
17
let root = args.value_of("root");
18
+
19
+ if args.is_present_with_zero_values("package") {
20
+ return Err(anyhow::anyhow!(
21
+ "\"--package <SPEC>\" requires a SPEC format value.\n\
22
+ Run `cargo help pkgid` for more information about SPEC format."
23
+ ).into())
24
+ }
25
26
let specs = args
27
.values_of("spec")
28
.unwrap_or_else(|| args.values_of("package").unwrap_or_default())
0 commit comments