mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-18 22:33:33 +00:00
Catch all errors when parsing boost program_options in IfcConvert
This commit is contained in:
@@ -128,6 +128,8 @@ int main(int argc, char** argv) {
|
|||||||
} catch (const boost::program_options::unknown_option& e) {
|
} catch (const boost::program_options::unknown_option& e) {
|
||||||
std::cerr << "[Error] Unknown option '" << e.get_option_name() << "'" << std::endl << std::endl;
|
std::cerr << "[Error] Unknown option '" << e.get_option_name() << "'" << std::endl << std::endl;
|
||||||
// Usage information will be emitted below
|
// Usage information will be emitted below
|
||||||
|
} catch (...) {
|
||||||
|
// Catch other errors such as invalid command line syntax
|
||||||
}
|
}
|
||||||
boost::program_options::notify(vmap);
|
boost::program_options::notify(vmap);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user