From 7096942cfa638333358bfe962fa5cbd31b894827 Mon Sep 17 00:00:00 2001 From: jfarrell Date: Mon, 9 Sep 2013 20:33:38 -0400 Subject: [PATCH] THRIFT-2178:Thrift generator returns error exit code on --version Client: compiler Patch: Nate Rosenblum Changes exit status of --version call. --- compiler/cpp/src/main.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/cpp/src/main.cc b/compiler/cpp/src/main.cc index a2350e6a..0cefa7ec 100755 --- a/compiler/cpp/src/main.cc +++ b/compiler/cpp/src/main.cc @@ -1020,7 +1020,7 @@ int main(int argc, char** argv) { help(); } else if (strcmp(arg, "-version") == 0) { version(); - exit(1); + exit(0); } else if (strcmp(arg, "-debug") == 0) { g_debug = 1; } else if (strcmp(arg, "-nowarn") == 0) { -- 2.17.1