This is an automated email from Gerrit.

"R. Diez <rdiez-2...@rd10.de>" just uploaded a new patch set to Gerrit, which 
you can find at https://review.openocd.org/c/openocd/+/8723

-- gerrit

commit 143bddef0ca74cf41aa6d7dcda5590a3d3a41b0c
Author: R. Diez <rdiezmail-open...@yahoo.de>
Date:   Sat Jan 25 22:06:22 2025 +0100

    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 <rdiezmail-open...@yahoo.de>

diff --git a/src/helper/options.c b/src/helper/options.c
index 50977a6106..735b8af5f6 100644
--- a/src/helper/options.c
+++ b/src/helper/options.c
@@ -334,7 +334,7 @@ int parse_cmdline_args(struct command_context *cmd_ctx, int 
argc, char *argv[])
                LOG_OUTPUT("             | -d<n>\tset debug level to 
<level>\n");
                LOG_OUTPUT("--log_output | -l\tredirect log output to file 
<name>\n");
                LOG_OUTPUT("--command    | -c\trun <command>\n");
-               exit(-1);
+               exit(0);
        }
 
        if (version_flag) {

-- 

Reply via email to