]> git.hungrycats.org Git - bees/commitdiff
options: return EXIT_SUCCESS after displaying help message
authorZygo Blaxell <bees@furryterror.org>
Tue, 17 Dec 2024 03:25:02 +0000 (22:25 -0500)
committerZygo Blaxell <bees@furryterror.org>
Sat, 4 Jan 2025 04:15:37 +0000 (23:15 -0500)
`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>
src/bees.cc

index 079c13d25a0ae43923351a0d9ed5ef7ea38cc9f9..2578876985e5e46a7844697d6186528ccb73df61 100644 (file)
@@ -814,7 +814,7 @@ bees_main(int argc, char *argv[])
                        case 'h':
                        default:
                                do_cmd_help(argv);
-                               return EXIT_FAILURE;
+                               return EXIT_SUCCESS;
                }
        }