Skip to content

Commit 4deb76f

Browse files
R. Diezborneoa
authored andcommitted
options.c: option --help should yield exit code 0
--help is supported and there is no reason to signal failure Change-Id: I59fda5336df47ec0b8172541a5fbfe60014bba7e Signed-off-by: R. Diez <[email protected]> Reviewed-on: https://review.openocd.org/c/openocd/+/8723 Tested-by: jenkins Reviewed-by: Antonio Borneo <[email protected]>
1 parent a71f2b7 commit 4deb76f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/helper/options.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ int parse_cmdline_args(struct command_context *cmd_ctx, int argc, char *argv[])
334334
LOG_OUTPUT(" | -d<n>\tset debug level to <level>\n");
335335
LOG_OUTPUT("--log_output | -l\tredirect log output to file <name>\n");
336336
LOG_OUTPUT("--command | -c\trun <command>\n");
337-
exit(-1);
337+
exit(0);
338338
}
339339

340340
if (version_flag) {

0 commit comments

Comments
 (0)