mirror of
https://github.com/Icinga/icinga2.git
synced 2026-05-28 04:12:13 -04:00
Dynamically print current copyright year in --version output
This commit is contained in:
parent
cf0209efd2
commit
c1fedab7ae
1 changed files with 2 additions and 1 deletions
|
|
@ -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…
Reference in a new issue