From: jfarrell Date: Tue, 10 Sep 2013 00:33:38 +0000 (-0400) Subject: THRIFT-2178:Thrift generator returns error exit code on --version X-Git-Url: https://source.supwisdom.com/gerrit/gitweb?a=commitdiff_plain;h=7096942cfa638333358bfe962fa5cbd31b894827;p=common%2Fthrift.git THRIFT-2178:Thrift generator returns error exit code on --version Client: compiler Patch: Nate Rosenblum Changes exit status of --version call. --- 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) {