1
0
mirror of https://github.com/Zygo/bees.git synced 2025-05-17 21:35:45 +02:00

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>
This commit is contained in:
Zygo Blaxell 2024-12-16 22:25:02 -05:00
parent 231593bfbc
commit 74296c644a

View File

@ -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;
} }
} }