Display beta version in "protoc --version"

Display the beta version when "protoc --version" is executed. Use
PROTOBUF_VERSION_SUFFIX for this purpose.
This commit is contained in:
Saurabh Singhal 2020-08-12 21:38:44 +05:30 committed by Adam Cozzette
parent 7e787e091e
commit b970be43ff

View File

@ -1842,7 +1842,7 @@ CommandLineInterface::InterpretArgument(const std::string& name,
std::cout << version_info_ << std::endl;
}
std::cout << "libprotoc " << internal::VersionString(PROTOBUF_VERSION)
<< std::endl;
<< PROTOBUF_VERSION_SUFFIX << std::endl;
return PARSE_ARGUMENT_DONE_AND_EXIT; // Exit without running compiler.
} else if (name == "--disallow_services") {