From 55655f5ea11e48d5de2696ff49f5577849465b4e Mon Sep 17 00:00:00 2001 From: Arne Welzel Date: Thu, 15 Jun 2023 13:19:27 +0200 Subject: [PATCH] Options: Do not output full usage on --test error ...mostly because the usage output is very long and the actual useful error message scrolls off the screen. --- src/Options.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Options.cc b/src/Options.cc index ac4da88099..86e8d01e51 100644 --- a/src/Options.cc +++ b/src/Options.cc @@ -301,7 +301,7 @@ Options parse_cmdline(int argc, char** argv) fprintf(stderr, "ERROR: C++ unit tests are disabled for this build.\n" " Please re-compile with ENABLE_ZEEK_UNIT_TESTS " "to run the C++ unit tests.\n"); - usage(argv[0], 1); + exit(1); #endif auto is_separator = [](const char* cstr)