From 74296c644a908ddd0045c299d75e936132dcfd90 Mon Sep 17 00:00:00 2001 From: Zygo Blaxell Date: Mon, 16 Dec 2024 22:25:02 -0500 Subject: [PATCH] options: return EXIT_SUCCESS after displaying help message `getopt_long` already supplies a message when an option cannot be parsed, so there isn't a need to distinguish option parse failures from help requests. Fixes: https://github.com/Zygo/bees/pull/277 Signed-off-by: Zygo Blaxell --- src/bees.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bees.cc b/src/bees.cc index 079c13d..2578876 100644 --- a/src/bees.cc +++ b/src/bees.cc @@ -814,7 +814,7 @@ bees_main(int argc, char *argv[]) case 'h': default: do_cmd_help(argv); - return EXIT_FAILURE; + return EXIT_SUCCESS; } }