Skip to content

Commit 24044fb

Browse files
committed
Catch all errors when parsing boost program_options in IfcConvert
1 parent cd366bf commit 24044fb

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/ifcconvert/IfcConvert.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,8 @@ int main(int argc, char** argv) {
128128
} catch (const boost::program_options::unknown_option& e) {
129129
std::cerr << "[Error] Unknown option '" << e.get_option_name() << "'" << std::endl << std::endl;
130130
// Usage information will be emitted below
131+
} catch (...) {
132+
// Catch other errors such as invalid command line syntax
131133
}
132134
boost::program_options::notify(vmap);
133135

0 commit comments

Comments
 (0)