Skip to content

Commit 25bc0df

Browse files
committed
Auto merge of #8515 - Spanfile:target-triple-opt-help-fix, r=ehuss
Fix the help display for the target-triple option The `--target` option (in `cargo build` for example) had its value name and help text flipped, so it looked like; ``` --target <Build for the target triple>... TRIPLE ``` This PR swaps the `value_name` and `help` arguments for the `multi_opt` call in `command_prelude.rs`/`fn arg_target_triple()` so the value name and help text are displayed correctly.
2 parents 7bce509 + ddd9fe1 commit 25bc0df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cargo/util/command_prelude.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ pub trait AppExt: Sized {
139139
}
140140

141141
fn arg_target_triple(self, target: &'static str) -> Self {
142-
self._arg(multi_opt("target", target, "TRIPLE"))
142+
self._arg(multi_opt("target", "TRIPLE", target))
143143
}
144144

145145
fn arg_target_dir(self) -> Self {

0 commit comments

Comments
 (0)