Skip to content

Commit

Permalink
cmdline: log '-h/--help' to stdout instead of stderr
Browse files Browse the repository at this point in the history
  • Loading branch information
robertswiecki committed Oct 1, 2023
1 parent 89b38c9 commit fd8d1a7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmdline.c
Original file line number Diff line number Diff line change
Expand Up @@ -581,6 +581,7 @@ bool cmdlineParse(int argc, char* argv[], honggfuzz_t* hfuzz) {
LOG_HELP(PROG_NAME " " PROG_VERSION);
exit(0);
case 'h':
logRedirectLogFD(STDOUT_FILENO);
cmdlineUsage(argv[0], custom_opts);
break;
case '?':
Expand Down

0 comments on commit fd8d1a7

Please sign in to comment.