diff options
-rw-r--r-- | DriverOptions.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/DriverOptions.cpp b/DriverOptions.cpp index 414fc93d..6f777e3c 100644 --- a/DriverOptions.cpp +++ b/DriverOptions.cpp @@ -146,6 +146,9 @@ DriverOptions::DriverOptions(int argc, char** argv) std::cout << optionsDesc.help() << std::endl << "An exception occurred while parsing program options: " << std::endl << e.what() << std::endl; + m_ShouldExit = true; + m_ExitCode = EXIT_FAILURE; + return; } if (showHelp) { |