From 6b68c8e299fd68bdbcaaf629fe88540b449d0f13 Mon Sep 17 00:00:00 2001 From: VC Date: Thu, 9 Feb 2023 11:31:58 +0100 Subject: [PATCH] fix: no need for defaults with clap v4 --- src/main.rs | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/main.rs b/src/main.rs index 2ce738f..4da8fff 100644 --- a/src/main.rs +++ b/src/main.rs @@ -63,10 +63,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") .default_value(DEFAULT_CONFIG_PATH) .num_args(1) .display_order(1), @@ -81,7 +78,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") .default_value(DEFAULT_CONFIG_PATH) .num_args(1) .display_order(1), @@ -104,7 +101,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") .default_value(DEFAULT_CONFIG_PATH) .num_args(1) .display_order(1),