From 228b9ccc517939c24f6c712aa1bed5ee43b9a9b4 Mon Sep 17 00:00:00 2001 From: HiGarfield Date: Fri, 29 Nov 2024 02:13:08 +0800 Subject: [PATCH] Change exit code to 0 for the -h (help) option --- src/cpulimit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cpulimit.c b/src/cpulimit.c index 1c04da5..8149513 100644 --- a/src/cpulimit.c +++ b/src/cpulimit.c @@ -425,7 +425,7 @@ int main(int argc, char *argv[]) break; case 'h': /* Print usage information and exit */ - print_usage_and_exit(stdout, 1); + print_usage_and_exit(stdout, 0); break; case '?': /* Print usage information on invalid option */