From b33ffa4401c79086d3f1c2a98a4e730502d18c05 Mon Sep 17 00:00:00 2001 From: VC Date: Fri, 18 Nov 2022 13:27:18 +0100 Subject: [PATCH] fix: remove unnecessary information in help commands --- Cargo.lock | 2 +- Cargo.toml | 2 +- src/main.rs | 7 ++----- 3 files changed, 4 insertions(+), 7 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 497ab66..66254c0 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2103,7 +2103,7 @@ dependencies = [ [[package]] name = "scootaloo" -version = "0.9.2" +version = "0.9.3" dependencies = [ "chrono", "clap", diff --git a/Cargo.toml b/Cargo.toml index e453916..9830145 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "scootaloo" -version = "0.9.2" +version = "0.9.3" authors = ["VC "] edition = "2021" diff --git a/src/main.rs b/src/main.rs index d61822e..43ca86d 100644 --- a/src/main.rs +++ b/src/main.rs @@ -15,10 +15,7 @@ fn main() { .short('c') .long("config") .value_name("CONFIG_FILE") - .help(&format!( - "TOML config file for scootaloo (default {})", - DEFAULT_CONFIG_PATH - )) + .help("TOML config file for scootaloo") .num_args(1) .default_value(DEFAULT_CONFIG_PATH) .display_order(1), @@ -28,7 +25,7 @@ fn main() { .short('l') .long("loglevel") .value_name("LOGLEVEL") - .help("Log level. Valid values are: Off, Warn, Error, Info, Debug") + .help("Log level") .num_args(1) .value_parser(["Off", "Warn", "Error", "Info", "Debug"]) .display_order(2),