We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 82c24b3 commit af4f8b8Copy full SHA for af4f8b8
1 file changed
src/Program.cxx
@@ -108,9 +108,11 @@ int Program::execute(int argc, char** argv)
108
auto message = boost::get_error_info<ErrorInfo::Message>(e);
109
std::cout << "Program options invalid: " << *message << "\n\n";
110
printHelp(optionsDescription);
111
+ return 2;
112
} catch (const po::error& e) {
113
std::cout << "Program options error: " << e.what() << "\n\n";
114
115
116
} catch (const std::exception& e) {
117
#if (BOOST_VERSION >= 105400)
118
std::cout << "Error: " << e.what() << '\n'
@@ -120,6 +122,7 @@ int Program::execute(int argc, char** argv)
120
122
121
123
<< boost::diagnostic_information(e) << '\n';
124
#endif
125
+ return 1;
126
}
127
128
return 0;
0 commit comments