You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@thrift.apache.org by jf...@apache.org on 2014/04/11 04:06:49 UTC

git commit: THRIFT-2459: --version should not exit 1 Client: compiler Patch: jfarrell

Repository: thrift
Updated Branches:
  refs/heads/master c02618cab -> 8b1799f3a


THRIFT-2459: --version should not exit 1
Client: compiler
Patch: jfarrell

Updated compiler to exit 0 when --version is called.


Project: http://git-wip-us.apache.org/repos/asf/thrift/repo
Commit: http://git-wip-us.apache.org/repos/asf/thrift/commit/8b1799f3
Tree: http://git-wip-us.apache.org/repos/asf/thrift/tree/8b1799f3
Diff: http://git-wip-us.apache.org/repos/asf/thrift/diff/8b1799f3

Branch: refs/heads/master
Commit: 8b1799f3ae32f299cdff2f869aa6e568c95c6c40
Parents: c02618c
Author: jfarrell <jf...@apache.org>
Authored: Thu Apr 10 22:06:11 2014 -0400
Committer: jfarrell <jf...@apache.org>
Committed: Thu Apr 10 22:06:11 2014 -0400

----------------------------------------------------------------------
 compiler/cpp/src/main.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/thrift/blob/8b1799f3/compiler/cpp/src/main.cc
----------------------------------------------------------------------
diff --git a/compiler/cpp/src/main.cc b/compiler/cpp/src/main.cc
index e1c9394..2b47263 100755
--- a/compiler/cpp/src/main.cc
+++ b/compiler/cpp/src/main.cc
@@ -1145,7 +1145,7 @@ int main(int argc, char** argv) {
   // if you're asking for version, you have a right not to pass a file
   if ((strcmp(argv[argc-1], "-version") == 0) || (strcmp(argv[argc-1], "--version") == 0)) {
     version();
-    exit(1);
+    exit(0);
   }
 
   // You gotta generate something!