add help
This commit is contained in:
parent
a50c52566d
commit
9d08e7574f
6
main.cpp
6
main.cpp
@ -29,8 +29,12 @@ int main(int argc, char **argv)
|
|||||||
int tcount = 0;
|
int tcount = 0;
|
||||||
int maxiter = 0;
|
int maxiter = 0;
|
||||||
|
|
||||||
while ((c = getopt(argc, argv, "t:i:")) != -1) {
|
while ((c = getopt(argc, argv, "ht:i:")) != -1) {
|
||||||
switch (c) {
|
switch (c) {
|
||||||
|
case 'h':
|
||||||
|
std::cout << "Usage: " << argv[0] << " [-t] [thread count] " <<
|
||||||
|
"[-i] [max iterations]" << std::endl;
|
||||||
|
exit(0);
|
||||||
case 't':
|
case 't':
|
||||||
targ = optarg;
|
targ = optarg;
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user