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 <bees@furryterror.org>
Dieser Commit ist enthalten in:
Zygo Blaxell
2025-01-03 23:15:37 -05:00
Ursprung 231593bfbc
Commit 74296c644a
+1 -1
Datei anzeigen
@@ -814,7 +814,7 @@ bees_main(int argc, char *argv[])
case 'h': case 'h':
default: default:
do_cmd_help(argv); do_cmd_help(argv);
return EXIT_FAILURE; return EXIT_SUCCESS;
} }
} }