From 4f8819c36209f5017aed299aeda5893630e11974 Mon Sep 17 00:00:00 2001 From: saturneric Date: Fri, 22 Nov 2024 23:09:37 +0100 Subject: feat: improve version option --- src/cmd.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src/cmd.cpp') diff --git a/src/cmd.cpp b/src/cmd.cpp index 092086fc..2f972329 100644 --- a/src/cmd.cpp +++ b/src/cmd.cpp @@ -52,15 +52,18 @@ inline auto Tr(const char* t) -> QString { return QCoreApplication::tr(t); } auto PrintVersion() -> int { QTextStream stream(stdout); stream << GetProjectName() << " " << GetProjectVersion() << '\n'; - stream << "Copyright (©) 2021 Saturneric " << '\n' + stream << QString("Copyright (©) 2021-%1 Saturneric ") + .arg(QDate::currentDate().year()) + << '\n' << Tr("This is free software; see the source for copying conditions.") << '\n' << '\n'; - stream << Tr("Build DateTime: ") + stream << Tr("Build Date & Time: ") << QLocale().toString(GetProjectBuildTimestamp()) << '\n' << Tr("Build Version: ") << GetProjectBuildVersion() << '\n' - << Tr("Source Code Version: ") << GetProjectBuildGitVersion() << '\n'; + << Tr("Source Code Infomation: ") << GetProjectBuildGitVersion() + << '\n'; stream << Qt::endl; return 0; -- cgit v1.2.3