X-Git-Url: https://review.openocd.org/gitweb?p=openocd.git;a=blobdiff_plain;f=src%2Fhelper%2Foptions.c;h=203791bd66024fd68c9c70615db2f672e37840c8;hp=2ac9143e6de1991aab1a8cf5e188c8f59d75ce65;hb=f7274784;hpb=437a981878d450baf31081506f6ec9005c43a9fb diff --git a/src/helper/options.c b/src/helper/options.c index 2ac9143e6d..203791bd66 100644 --- a/src/helper/options.c +++ b/src/helper/options.c @@ -178,7 +178,8 @@ int parse_cmdline_args(struct command_context_s *cmd_ctx, int argc, char *argv[] if (version_flag) { /* Nothing to do, version gets printed automatically. */ - exit(-1); + // It is not an error to request the VERSION number. + exit(0); } return ERROR_OK;