We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b9554f3 commit 4b9c503Copy full SHA for 4b9c503
src/bin/cargo/commands/pkgid.rs
@@ -15,7 +15,7 @@ pub fn cli() -> App {
15
16
pub fn exec(config: &mut Config, args: &ArgMatches<'_>) -> CliResult {
17
let ws = args.workspace(config)?;
18
- if !args.is_present("spec") && args.is_present_with_zero_values("package") {
+ if args.is_present_with_zero_values("package") {
19
print_available_packages(&ws)?
20
}
21
let spec = args.value_of("spec").or_else(|| args.value_of("package"));
0 commit comments