bootstrapper: show help instead of msgbox window when cmd option doesn't have an arg (#8275)

This commit is contained in:
Andrey Nekrasov 2020-11-30 17:42:46 +03:00 committed by GitHub
parent f0553c370a
commit 6cee767ddf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -102,32 +102,9 @@ int bootstrapper(HINSTANCE hInstance)
{
cmdArgs = options.parse(__argc, const_cast<const char**>(__argv));
}
catch (cxxopts::option_has_no_value_exception&)
{
showHelp = true;
}
catch (cxxopts::option_not_exists_exception&)
{
showHelp = true;
}
catch (cxxopts::option_not_present_exception&)
{
showHelp = true;
}
catch (cxxopts::option_not_has_argument_exception&)
{
showHelp = true;
}
catch (cxxopts::option_required_exception&)
{
showHelp = true;
}
catch (cxxopts::option_requires_argument_exception&)
{
showHelp = true;
}
catch (...)
{
showHelp = true;
}
showHelp = showHelp || cmdArgs["help"].as<bool>();