Remove warning from length parameter description and execute the tool in ci

This commit is contained in:
runebaas 2019-10-27 12:19:33 +01:00
parent 339a4d65b0
commit 1ff4df9050
No known key found for this signature in database
GPG key ID: 2677AF508D0300D6
2 changed files with 2 additions and 1 deletions

View file

@ -10,3 +10,4 @@ Build:
- target - target
script: script:
- cargo build --verbose - cargo build --verbose
- ./target/debug/fortune-rs

View file

@ -18,7 +18,7 @@ fn main() {
.arg(Arg::with_name("length") .arg(Arg::with_name("length")
.short("n") .short("n")
.default_value("160") .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) .takes_value(true)
.value_name("length")); .value_name("length"));
let matches = app.get_matches(); let matches = app.get_matches();