Skip to content

Commit

Permalink
Auto merge of #8515 - Spanfile:target-triple-opt-help-fix, r=alexcric…
Browse files Browse the repository at this point in the history
…hton

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.
  • Loading branch information
bors committed Jul 20, 2020
2 parents f84f3f8 + ddd9fe1 commit 1a9503f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cargo/util/command_prelude.rs
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ pub trait AppExt: Sized {
}

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

fn arg_target_dir(self) -> Self {
Expand Down

0 comments on commit 1a9503f

Please sign in to comment.