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:
c02618c
)
THRIFT-2459: --version should not exit 1
author
jfarrell
<jfarrell@apache.org>
Fri, 11 Apr 2014 02:06:11 +0000
(22:06 -0400)
committer
jfarrell
<jfarrell@apache.org>
Fri, 11 Apr 2014 02:06:11 +0000
(22:06 -0400)
Client: compiler
Patch: jfarrell
Updated compiler to exit 0 when --version is called.
compiler/cpp/src/main.cc
patch
|
blob
|
history
diff --git
a/compiler/cpp/src/main.cc
b/compiler/cpp/src/main.cc
index
e1c9394
..
2b47263
100755
(executable)
--- 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!