fix: remove unnecessary information in help commands

This commit is contained in:
VC
2022-11-18 13:27:18 +01:00
parent 77941e0b9a
commit b33ffa4401
3 changed files with 4 additions and 7 deletions

2
Cargo.lock generated
View File

@@ -2103,7 +2103,7 @@ dependencies = [
[[package]]
name = "scootaloo"
version = "0.9.2"
version = "0.9.3"
dependencies = [
"chrono",
"clap",

View File

@@ -1,6 +1,6 @@
[package]
name = "scootaloo"
version = "0.9.2"
version = "0.9.3"
authors = ["VC <veretcle+framagit@mateu.be>"]
edition = "2021"

View File

@@ -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),