Skip to content

Commit

Permalink
Reject invalid command line parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
Yankes authored and SupSuper committed Feb 28, 2024
1 parent 498868b commit e2c5a1b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Engine/Options.cpp
Expand Up @@ -465,6 +465,11 @@ bool showHelp(int argc, char *argv[])
// skip next option argument, only couple options do not have it.
++i;
}
else
{
std::cerr << "Unknown parameter '" << arg << "'" << std::endl;
return true;
}
}
return false;
}
Expand Down

0 comments on commit e2c5a1b

Please sign in to comment.