Skip to content

Commit

Permalink
Always exit with code 1 on error
Browse files Browse the repository at this point in the history
  • Loading branch information
Sirraide committed Nov 8, 2023
1 parent eae50b7 commit 94dfca2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/clopts.hh
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,7 @@ struct opt_impl {
/// Default help handler.
inline void default_help_handler(std::string_view program_name, std::string_view msg) {
std::cerr << "Usage: " << program_name << " " << msg;
std::exit(0);
std::exit(1);
}

template <typename file_data_type>
Expand Down

0 comments on commit 94dfca2

Please sign in to comment.