mirror of
https://github.com/Icinga/icinga2.git
synced 2025-04-08 17:05:25 +02:00
Dynamically print current copyright year in --version
output
This commit is contained in:
parent
cf0209efd2
commit
c1fedab7ae
@ -543,7 +543,8 @@ static int Main()
|
||||
}
|
||||
|
||||
if (vm.count("version")) {
|
||||
std::cout << "Copyright (c) 2012-2018 Icinga Development Team (https://icinga.com/)" << std::endl
|
||||
std::cout << "Copyright (c) 2012-" << Utility::FormatDateTime("%Y", Utility::GetTime())
|
||||
<< " Icinga GmbH (https://icinga.com/)" << std::endl
|
||||
<< "License GPLv2+: GNU GPL version 2 or later <http://gnu.org/licenses/gpl2.html>" << std::endl
|
||||
<< "This is free software: you are free to change and redistribute it." << std::endl
|
||||
<< "There is NO WARRANTY, to the extent permitted by law.";
|
||||
|
Loading…
x
Reference in New Issue
Block a user