From 1ff4df905057e513320a1d45438cf0ea6ef00e78 Mon Sep 17 00:00:00 2001 From: runebaas Date: Sun, 27 Oct 2019 12:19:33 +0100 Subject: [PATCH] Remove warning from length parameter description and execute the tool in ci --- .gitlab-ci.yml | 1 + src/main.rs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 10c1c8f..dad958b 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -10,3 +10,4 @@ Build: - target script: - cargo build --verbose + - ./target/debug/fortune-rs diff --git a/src/main.rs b/src/main.rs index 207b148..48416c1 100644 --- a/src/main.rs +++ b/src/main.rs @@ -18,7 +18,7 @@ fn main() { .arg(Arg::with_name("length") .short("n") .default_value("160") - .help("Set the longest fortune length (in characters) considered to be 'short'. All fortunes longer than this are considered 'long'. Be careful! If you set the length too short and ask for short fortunes, or too long and ask for long ones, fortune goes into a never-ending thrash loop.") + .help("Set the longest fortune length (in characters) considered to be 'short'. All fortunes longer than this are considered 'long'.") .takes_value(true) .value_name("length")); let matches = app.get_matches();