This commit is contained in:
Akos Horvath 2022-07-19 21:07:48 +02:00
parent a50c52566d
commit 9d08e7574f

View File

@ -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;