Add help information to --help option.

This commit is contained in:
Nicolás A. Ortega Froysa 2021-03-03 13:24:53 +01:00
parent 3eaaa296ee
commit c68d75cb8c

View File

@ -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<PathBuf>,
#[structopt(help = "Ordinal of the prime to generate")]
n:usize,
}