summaryrefslogtreecommitdiffstats
path: root/src/cli.rs
diff options
context:
space:
mode:
authorMatthias Beyer <matthias.beyer@atos.net>2021-05-18 09:25:43 +0200
committerMatthias Beyer <matthias.beyer@atos.net>2021-05-18 09:42:01 +0200
commit03433b8875aec76bb2e7d5cc930b4281b26211d4 (patch)
treef0b474dc81177bdcc05d55ecdcd26186a02679f3 /src/cli.rs
parent34dcd270f4628b9ef6614e35de65f75dcaa7d492 (diff)
Make normal about message more consise, detailed about in long message
Signed-off-by: Matthias Beyer <matthias.beyer@atos.net>
Diffstat (limited to 'src/cli.rs')
-rw-r--r--src/cli.rs24
1 files changed, 20 insertions, 4 deletions
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_dir>/<build id>.log`.
+ "#))
)
)