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.
2 parents 7f44ba4 + 51fa3a4 commit 8777a6bCopy full SHA for 8777a6b
src/bin/cargo/commands/yank.rs
@@ -7,7 +7,11 @@ pub fn cli() -> App {
7
.about("Remove a pushed crate from the index")
8
.arg(opt("quiet", "No output printed to stdout").short("q"))
9
.arg(Arg::with_name("crate"))
10
- .arg(opt("vers", "The version to yank or un-yank").value_name("VERSION"))
+ .arg(
11
+ opt("vers", "The version to yank or un-yank")
12
+ .value_name("VERSION")
13
+ .required(true),
14
+ )
15
.arg(opt(
16
"undo",
17
"Undo a yank, putting a version back into the index",
tests/testsuite/alt_registry.rs
@@ -637,7 +637,7 @@ Caused by:
637
"owner",
638
"publish",
639
"search",
640
- "yank",
+ "yank --vers 0.0.1",
641
] {
642
p.cargo(cmd)
643
.arg("--registry")
0 commit comments