From 94dfca235325748462e33edd3332c678543048fc Mon Sep 17 00:00:00 2001 From: Sirraide Date: Wed, 8 Nov 2023 12:51:42 +0100 Subject: [PATCH] Always exit with code 1 on error --- include/clopts.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/clopts.hh b/include/clopts.hh index aa4acf3..1df3c8d 100644 --- a/include/clopts.hh +++ b/include/clopts.hh @@ -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