diff --git a/indivisible.1 b/indivisible.1 index 63c1b11..02dc281 100644 --- a/indivisible.1 +++ b/indivisible.1 @@ -6,7 +6,9 @@ indivisible \- prime number generator and tester [\fIOPTIONS\fR] <\fIn\fR> .SH "DESCRIPTION" -Indivisible is a program for working with prime numbers. Its default behaviour will attempt to find the \fInth\fR prime. +Indivisible is a program for working with prime numbers. It can either generate +primes up to a limit \fIn\fR or test to see if \fIn\fR is a prime. It makes use +of a segmented sieve of Eratosthenes. .SH "OPTIONS" .TP @@ -19,7 +21,7 @@ Import prime numbers from \fIFILE\fR \fB\-t\fR, \fB\-\-test\fR Test if n is a prime instead of generation .TP -\fB\-s\fR, \fB\-\-sieve\fR +\fB\-s\fR, \fB\-\-sieve\fR <\fISIZE\fR> Set a custom sieve size .TP \fB\-v\fR, \fB\-\-verbose\fR diff --git a/src/main.rs b/src/main.rs index cca82a2..d29ab33 100644 --- a/src/main.rs +++ b/src/main.rs @@ -35,7 +35,7 @@ struct Opt { test:bool, #[structopt(help = "Max of the prime to generate or number to test for primality")] num:usize, - #[structopt(short, long, default_value = "1000", help = "Set a custom sieve size")] + #[structopt(short, long, name = "SIZE", default_value = "1000", help = "Set a custom sieve size")] sieve:usize, //#[structopt(short, long, name = "n", default_value = "1", help = "Number of threads to spawn")] //jobs:u64,