mirror of
https://framagit.org/veretcle/scootaloo.git
synced 2025-07-20 17:11:19 +02:00
fix: no need for defaults with clap v4
This commit is contained in:
@@ -63,10 +63,7 @@ fn main() {
|
|||||||
.short('c')
|
.short('c')
|
||||||
.long("config")
|
.long("config")
|
||||||
.value_name("CONFIG_FILE")
|
.value_name("CONFIG_FILE")
|
||||||
.help(format!(
|
.help("TOML config file for scootaloo")
|
||||||
"TOML config file for scootaloo (default {})",
|
|
||||||
DEFAULT_CONFIG_PATH
|
|
||||||
))
|
|
||||||
.default_value(DEFAULT_CONFIG_PATH)
|
.default_value(DEFAULT_CONFIG_PATH)
|
||||||
.num_args(1)
|
.num_args(1)
|
||||||
.display_order(1),
|
.display_order(1),
|
||||||
@@ -81,7 +78,7 @@ fn main() {
|
|||||||
.short('c')
|
.short('c')
|
||||||
.long("config")
|
.long("config")
|
||||||
.value_name("CONFIG_FILE")
|
.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)
|
.default_value(DEFAULT_CONFIG_PATH)
|
||||||
.num_args(1)
|
.num_args(1)
|
||||||
.display_order(1),
|
.display_order(1),
|
||||||
@@ -104,7 +101,7 @@ fn main() {
|
|||||||
.short('c')
|
.short('c')
|
||||||
.long("config")
|
.long("config")
|
||||||
.value_name("CONFIG_FILE")
|
.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)
|
.default_value(DEFAULT_CONFIG_PATH)
|
||||||
.num_args(1)
|
.num_args(1)
|
||||||
.display_order(1),
|
.display_order(1),
|
||||||
|
Reference in New Issue
Block a user