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.
This commit is contained in:
bors 2020-07-23 05:17:25 +00:00
commit 25bc0df13b

View File

@ -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 {