Skip to content

Commit 618f55a

Browse files
committed
Auto merge of #4705 - Metaswitch:fix-yank-help, r=matklad
Stop yank -h from panicking on nightly Increase the gap between the registry option and the description so that the help is parsed correctly. I have also checked the code for the other binaries to ensure that they don't suffer from the same issue. This fixes #4703.
2 parents ce72eb6 + 5b1c699 commit 618f55a

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

src/bin/yank.rs

+12-12
Original file line numberDiff line numberDiff line change
@@ -25,18 +25,18 @@ Usage:
2525
cargo yank [options] [<crate>]
2626
2727
Options:
28-
-h, --help Print this message
29-
--vers VERSION The version to yank or un-yank
30-
--undo Undo a yank, putting a version back into the index
31-
--index INDEX Registry index to yank from
32-
--token TOKEN API token to use when authenticating
33-
-v, --verbose ... Use verbose output (-vv very verbose/build.rs output)
34-
-q, --quiet No output printed to stdout
35-
--color WHEN Coloring: auto, always, never
36-
--frozen Require Cargo.lock and cache are up to date
37-
--locked Require Cargo.lock is up to date
38-
-Z FLAG ... Unstable (nightly-only) flags to Cargo
39-
--registry REGISTRY Registry to use
28+
-h, --help Print this message
29+
--vers VERSION The version to yank or un-yank
30+
--undo Undo a yank, putting a version back into the index
31+
--index INDEX Registry index to yank from
32+
--token TOKEN API token to use when authenticating
33+
-v, --verbose ... Use verbose output (-vv very verbose/build.rs output)
34+
-q, --quiet No output printed to stdout
35+
--color WHEN Coloring: auto, always, never
36+
--frozen Require Cargo.lock and cache are up to date
37+
--locked Require Cargo.lock is up to date
38+
-Z FLAG ... Unstable (nightly-only) flags to Cargo
39+
--registry REGISTRY Registry to use
4040
4141
The yank command removes a previously pushed crate's version from the server's
4242
index. This command does not delete any data, and the crate will still be

0 commit comments

Comments
 (0)