refactor: more clear option

This commit is contained in:
VC
2022-04-23 10:15:29 +02:00
parent 48b8eaaa5b
commit 8b0945cb48

View File

@@ -21,7 +21,7 @@ fn main() {
.short("c") .short("c")
.long("config") .long("config")
.value_name("CONFIG_FILE") .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) .takes_value(true)
.display_order(1)) .display_order(1))
.arg(Arg::with_name("log_level") .arg(Arg::with_name("log_level")
@@ -49,7 +49,7 @@ fn main() {
.short("c") .short("c")
.long("config") .long("config")
.value_name("CONFIG_FILE") .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) .takes_value(true)
.display_order(1))) .display_order(1)))
.get_matches(); .get_matches();