Skip to content

Commit 75a1dd0

Browse files
committed
Reorder flags in help to give bin context
It's not clear that bin is a singular of bins rather than the opposite of lib
1 parent 76705ed commit 75a1dd0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/cargo/util/command_prelude.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -91,10 +91,10 @@ pub trait CommandExt: Sized {
9191
all: &'static str,
9292
) -> Self {
9393
self.arg_targets_lib_bin_example(lib, bin, bins, example, examples)
94-
._arg(optional_multi_opt("test", "NAME", test))
9594
._arg(flag("tests", tests))
96-
._arg(optional_multi_opt("bench", "NAME", bench))
95+
._arg(optional_multi_opt("test", "NAME", test))
9796
._arg(flag("benches", benches))
97+
._arg(optional_multi_opt("bench", "NAME", bench))
9898
._arg(flag("all-targets", all))
9999
}
100100

@@ -107,10 +107,10 @@ pub trait CommandExt: Sized {
107107
examples: &'static str,
108108
) -> Self {
109109
self._arg(flag("lib", lib))
110-
._arg(optional_multi_opt("bin", "NAME", bin))
111110
._arg(flag("bins", bins))
112-
._arg(optional_multi_opt("example", "NAME", example))
111+
._arg(optional_multi_opt("bin", "NAME", bin))
113112
._arg(flag("examples", examples))
113+
._arg(optional_multi_opt("example", "NAME", example))
114114
}
115115

116116
fn arg_targets_bins_examples(

0 commit comments

Comments
 (0)