فهرست منبع

Display beta version in "protoc --version"

Display the beta version when "protoc --version" is executed. Use
PROTOBUF_VERSION_SUFFIX for this purpose.
Saurabh Singhal 5 سال پیش
والد
کامیت
b970be43ff
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      src/google/protobuf/compiler/command_line_interface.cc

+ 1 - 1
src/google/protobuf/compiler/command_line_interface.cc

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