summaryrefslogtreecommitdiffstats
path: root/src/cli.rs
diff options
context:
space:
mode:
authorMatthias Beyer <matthias.beyer@atos.net>2021-05-18 09:20:03 +0200
committerMatthias Beyer <matthias.beyer@atos.net>2021-05-18 09:20:03 +0200
commitb1774b77cc64c3154153ac5956624e2bf22184c9 (patch)
treeb7588051bec39e0465912e7860ce5a86ca4dc707 /src/cli.rs
parentfcc2a8f770464e58646e965a86b544767a6cec91 (diff)
Move detailed about text to long about
Signed-off-by: Matthias Beyer <matthias.beyer@atos.net>
Diffstat (limited to 'src/cli.rs')
-rw-r--r--src/cli.rs36
1 files changed, 30 insertions, 6 deletions
diff --git a/src/cli.rs b/src/cli.rs
index 67853b2..7cdccd0 100644
--- a/src/cli.rs
+++ b/src/cli.rs
@@ -45,21 +45,33 @@ pub fn cli<'a>() -> App<'a> {
.multiple(false)
.long("db-url")
.value_name("HOST")
- .about("Overwrite the database host set via configuration. Can also be overriden via environment, but this setting has precedence.")
+ .about("Override the database host")
+ .long_about(indoc::indoc!(r#"
+ Override the database host set via configuration.
+ Can also be overriden via environment variable 'BUTIDO_DATABASE_HOST', but this setting has precedence.
+ "#))
)
.arg(Arg::new("database_port")
.required(false)
.multiple(false)
.long("db-port")
.value_name("PORT")
- .about("Overwrite the database port set via configuration. Can also be overriden via environment, but this setting has precedence.")
+ .about("Override the database port")
+ .long_about(indoc::indoc!(r#"
+ Override the database port set via configuration.
+ Can also be overriden via environment 'BUTIDO_DATABASE_PORT', but this setting has precedence.
+ "#))
)
.arg(Arg::new("database_user")
.required(false)
.multiple(false)
.long("db-user")
.value_name("USER")
- .about("Overwrite the database user set via configuration. Can also be overriden via environment, but this setting has precedence.")
+ .about("Override the database user")
+ .long_about(indoc::indoc!(r#"
+ Override the database user set via configuration.
+ Can also be overriden via environment 'BUTIDO_DATABASE_USER', but this setting has precedence.
+ "#))
)
.arg(Arg::new("database_password")
.required(false)
@@ -67,21 +79,33 @@ pub fn cli<'a>() -> App<'a> {
.long("db-password")
.alias("db-pw")
.value_name("PASSWORD")
- .about("Overwrite the database password set via configuration. Can also be overriden via environment, but this setting has precedence.")
+ .about("Override the database password")
+ .long_about(indoc::indoc!(r#"
+ Override the database password set via configuration.
+ Can also be overriden via environment 'BUTIDO_DATABASE_PASSWORD', but this setting has precedence.
+ "#))
)
.arg(Arg::new("database_name")
.required(false)
.multiple(false)
.long("db-name")
.value_name("NAME")
- .about("Overwrite the database name set via configuration. Can also be overriden via environment, but this setting has precedence.")
+ .about("Override the database name")
+ .long_about(indoc::indoc!(r#"
+ Override the database name set via configuration.
+ Can also be overriden via environment 'BUTIDO_DATABASE_NAME', but this setting has precedence.
+ "#))
)
.arg(Arg::new("database_connection_timeout")
.required(false)
.multiple(false)
.long("db-timeout")
.value_name("TIMEOUT")
- .about("Overwrite the database connection timeout set via configuration. Can also be overriden via environment, but this setting has precedence.")
+ .about("Override the database connection timeout")
+ .long_about(indoc::indoc!(r#"
+ Override the database connection timeout set via configuration.
+ Can also be overriden via environment 'BUTIDO_DATABASE_CONNECTION_TIMEOUT', but this setting has precedence.
+ "#))
)
.subcommand(App::new("generate-completions")