mirror of
https://github.com/valitydev/thrift.git
synced 2024-11-06 18:35:19 +00:00
THRIFT-2459: --version should not exit 1
Client: compiler Patch: jfarrell Updated compiler to exit 0 when --version is called.
This commit is contained in:
parent
c02618cabc
commit
8b1799f3ae
@ -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!
|
||||
|
Loading…
Reference in New Issue
Block a user