Code Review
/
common
/
thrift.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
b0d3c3f
)
THRIFT-2178:Thrift generator returns error exit code on --version
author
jfarrell
<jfarrell@apache.org>
Tue, 10 Sep 2013 00:33:38 +0000
(20:33 -0400)
committer
jfarrell
<jfarrell@apache.org>
Tue, 10 Sep 2013 00:33:38 +0000
(20:33 -0400)
Client: compiler
Patch: Nate Rosenblum
Changes exit status of --version call.
compiler/cpp/src/main.cc
patch
|
blob
|
history
diff --git
a/compiler/cpp/src/main.cc
b/compiler/cpp/src/main.cc
index
a2350e6
..
0cefa7e
100755
(executable)
--- 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) {