Add help information to --help option.
This commit is contained in:
parent
3eaaa296ee
commit
c68d75cb8c
@ -23,11 +23,13 @@ use std::io::{BufRead, BufReader};
|
|||||||
use std::collections::VecDeque;
|
use std::collections::VecDeque;
|
||||||
|
|
||||||
#[derive(StructOpt)]
|
#[derive(StructOpt)]
|
||||||
|
#[structopt(about = "A prime number generator and tester.")]
|
||||||
struct Opt {
|
struct Opt {
|
||||||
#[structopt(short, long)]
|
#[structopt(short, long, help = "Print all found primes")]
|
||||||
verbose:bool,
|
verbose:bool,
|
||||||
#[structopt(short, long, name="FILE")]
|
#[structopt(short, long, name="FILE", help = "Import prime numbers from FILE")]
|
||||||
import:Option<PathBuf>,
|
import:Option<PathBuf>,
|
||||||
|
#[structopt(help = "Ordinal of the prime to generate")]
|
||||||
n:usize,
|
n:usize,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user