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 a2350e6..0cefa7e 100755
--- a/compiler/cpp/src/main.cc
+++ b/compiler/cpp/src/main.cc
@@ -1020,7 +1020,7 @@
         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) {