From 8b1799f3ae32f299cdff2f869aa6e568c95c6c40 Mon Sep 17 00:00:00 2001 From: jfarrell Date: Thu, 10 Apr 2014 22:06:11 -0400 Subject: [PATCH] THRIFT-2459: --version should not exit 1 Client: compiler Patch: jfarrell Updated compiler to exit 0 when --version is called. --- 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 e1c93948..2b472633 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! -- 2.17.1