mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-06-18 06:02:21 +08:00
修改服务器版本信息声明相关代码
This commit is contained in:
@@ -154,9 +154,9 @@ public:
|
||||
(*_parser) << Option('v', "version", Option::ArgNone, nullptr, false, "显示版本号",
|
||||
[](const std::shared_ptr<ostream> &stream, const string &arg) -> bool {
|
||||
//版本信息
|
||||
*stream << "编译日期: " << build_time << std::endl;
|
||||
*stream << "当前git分支: " << branch_name << std::endl;
|
||||
*stream << "当前git hash值: " << commit_hash << std::endl;
|
||||
*stream << "编译日期: " << BUILD_TIME << std::endl;
|
||||
*stream << "当前git分支: " << BRANCH_TIME << std::endl;
|
||||
*stream << "当前git hash值: " << COMMIT_HASH << std::endl;
|
||||
throw ExitException();
|
||||
});
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user