From 03433b8875aec76bb2e7d5cc930b4281b26211d4 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Tue, 18 May 2021 09:25:43 +0200 Subject: Make normal about message more consise, detailed about in long message Signed-off-by: Matthias Beyer --- src/cli.rs | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) (limited to 'src/cli.rs') diff --git a/src/cli.rs b/src/cli.rs index fc069c8..f9820ff 100644 --- a/src/cli.rs +++ b/src/cli.rs @@ -388,14 +388,20 @@ pub fn cli<'a>() -> App<'a> { .multiple(false) .takes_value(false) .long("no-verify") - .about("Do not perform a hash sum check on all packages in the dependency tree before starting the build") + .about("Skip hashsum check") + .long_about(indoc::indoc!(r#" + Do not perform a hash sum check on all packages in the dependency tree before starting the build. + "#)) ) .arg(Arg::new("no_lint") .required(false) .multiple(false) .takes_value(false) .long("no-lint") - .about("Do not perform script linting before starting the build") + .about("Skip linting") + .long_about(indoc::indoc!(r#" + Do not perform script linting before starting the build. + "#)) ) .arg(Arg::new("staging_dir") @@ -423,7 +429,11 @@ pub fn cli<'a>() -> App<'a> { .short('E') .long("env") .validator(env_pass_validator) - .about("Pass these variables to each build job (expects \"key=value\" or name of variable available in ENV)") + .about("Pass environment variable to all build jobs") + .long_about(indoc::indoc!(r#" + Pass these variables to each build job. + This argument expects \"key=value\" or name of variable available in ENV + "#)) ) .arg(Arg::new("image") @@ -441,7 +451,13 @@ pub fn cli<'a>() -> App<'a> { .multiple(false) .long("write-log") .short('L') - .about("Write the log not only to database, but also in a plain-text-file") + .about("Write log to disk as well") + .long_about(indoc::indoc!(r#" + With this flag set, butido does not only write the build logs to database, but also to the configured + log directory. + + The log of a build is written to `/.log`. + "#)) ) ) -- cgit v1.2.3