Skip to content

Commit

Permalink
Auto merge of rust-lang#8697 - Mikastiv:pr-8695, r=ehuss
Browse files Browse the repository at this point in the history
updated yank error message

Fixes rust-lang#8695
  • Loading branch information
bors committed Sep 15, 2020
2 parents 7f44ba4 + 51fa3a4 commit 8777a6b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion src/bin/cargo/commands/yank.rs
Expand Up @@ -7,7 +7,11 @@ pub fn cli() -> App {
.about("Remove a pushed crate from the index")
.arg(opt("quiet", "No output printed to stdout").short("q"))
.arg(Arg::with_name("crate"))
.arg(opt("vers", "The version to yank or un-yank").value_name("VERSION"))
.arg(
opt("vers", "The version to yank or un-yank")
.value_name("VERSION")
.required(true),
)
.arg(opt(
"undo",
"Undo a yank, putting a version back into the index",
Expand Down
2 changes: 1 addition & 1 deletion tests/testsuite/alt_registry.rs
Expand Up @@ -637,7 +637,7 @@ Caused by:
"owner",
"publish",
"search",
"yank",
"yank --vers 0.0.1",
] {
p.cargo(cmd)
.arg("--registry")
Expand Down

0 comments on commit 8777a6b

Please sign in to comment.