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.
This commit is contained in:
Arne Welzel 2023-06-15 13:19:27 +02:00
parent 07b869e645
commit 55655f5ea1

View file

@ -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)