From c68d75cb8c94d1d81d8d0137f82b307f3f53137f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20Ortega=20Froysa?= Date: Wed, 3 Mar 2021 13:24:53 +0100 Subject: [PATCH] Add help information to --help option. --- src/main.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index cb650c8..38bc606 100644 --- a/src/main.rs +++ b/src/main.rs @@ -23,11 +23,13 @@ use std::io::{BufRead, BufReader}; use std::collections::VecDeque; #[derive(StructOpt)] +#[structopt(about = "A prime number generator and tester.")] struct Opt { - #[structopt(short, long)] + #[structopt(short, long, help = "Print all found primes")] verbose:bool, - #[structopt(short, long, name="FILE")] + #[structopt(short, long, name="FILE", help = "Import prime numbers from FILE")] import:Option, + #[structopt(help = "Ordinal of the prime to generate")] n:usize, }