From 0abfcbd1fbd5df329fdfd9bc5fbde1a3378f0327 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fe=CC=81lix=20Saparelli?= Date: Wed, 8 Jun 2022 01:04:46 +1200 Subject: [PATCH] Simplify short help output --- src/main.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/main.rs b/src/main.rs index d6ccab0c..564a9c65 100644 --- a/src/main.rs +++ b/src/main.rs @@ -36,7 +36,7 @@ struct Options { #[clap(long, default_value = "*")] version: String, - /// Override binary target set. Defaults to a set of targets based on the current platform. + /// Override binary target set. /// /// Binstall is able to look for binaries for several targets, installing the first one it finds /// in the order the targets were given. For example, on a 64-bit glibc Linux distribution, the @@ -45,13 +45,14 @@ struct Options { /// considered. /// /// This option takes a comma-separated list of target triples, which will be tried in order. + /// They override the default list, which is detected automatically from the current platform. /// /// If falling back to installing from source, the first target will be used. #[clap( help_heading = "OVERRIDES", alias = "target", long, - value_name = "triple" + value_name = "TRIPLE" )] targets: Option, @@ -94,7 +95,7 @@ struct Options { /// Utility log level /// /// Set to `debug` when submitting a bug report. - #[clap(long, default_value = "info")] + #[clap(long, default_value = "info", value_name = "LEVEL")] log_level: LevelFilter, /// Override Cargo.toml package manifest bin-dir.