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-openocd@yahoo.de> Reviewed-on: https://review.openocd.org/c/openocd/+/8723 Tested-by: jenkins Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
This commit is contained in:
parent
a71f2b7089
commit
4deb76fc9d
|
@ -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(" | -d<n>\tset debug level to <level>\n");
|
||||||
LOG_OUTPUT("--log_output | -l\tredirect log output to file <name>\n");
|
LOG_OUTPUT("--log_output | -l\tredirect log output to file <name>\n");
|
||||||
LOG_OUTPUT("--command | -c\trun <command>\n");
|
LOG_OUTPUT("--command | -c\trun <command>\n");
|
||||||
exit(-1);
|
exit(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (version_flag) {
|
if (version_flag) {
|
||||||
|
|
Loading…
Reference in New Issue