Require number of iterations to be at least 2
This commit is contained in:
parent
75ef78495c
commit
0f8f191d0e
5
main.cpp
5
main.cpp
@ -290,6 +290,11 @@ void parseArguments(int argc, char *argv[])
|
||||
std::cerr << "Invalid number of times." << std::endl;
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
if (num_times < 2)
|
||||
{
|
||||
std::cerr << "Number of times must be 2 or more" << std::endl;
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
}
|
||||
else if (!std::string("--float").compare(argv[i]))
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user