From 8b0945cb48f5bd16fa5f5f32a5405da236bf6119 Mon Sep 17 00:00:00 2001 From: VC Date: Sat, 23 Apr 2022 10:15:29 +0200 Subject: [PATCH] refactor: more clear option --- src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index e700c1e..80c9bfb 100644 --- a/src/main.rs +++ b/src/main.rs @@ -21,7 +21,7 @@ fn main() { .short("c") .long("config") .value_name("CONFIG_FILE") - .help("TOML config file for scootaloo (default /usr/local/etc/scootaloo.toml)") + .help(&*format!("TOML config file for scootaloo (default {})", DEFAULT_CONFIG_PATH)) .takes_value(true) .display_order(1)) .arg(Arg::with_name("log_level") @@ -49,7 +49,7 @@ fn main() { .short("c") .long("config") .value_name("CONFIG_FILE") - .help("TOML config file for scootaloo (default /usr/local/etc/scootaloo.toml") + .help(&*format!("TOML config file for scootaloo (default {})", DEFAULT_CONFIG_PATH)) .takes_value(true) .display_order(1))) .get_matches();