Skip to content

Commit

Permalink
Change exit code to 0 for the -h (help) option
Browse files Browse the repository at this point in the history
  • Loading branch information
HiGarfield committed Nov 28, 2024
1 parent 79b9aa2 commit 228b9cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cpulimit.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 228b9cc

Please sign in to comment.