aboutsummaryrefslogtreecommitdiffstats
path: root/src/cmd.cpp
diff options
context:
space:
mode:
authorsaturneric <[email protected]>2024-11-22 22:09:37 +0000
committersaturneric <[email protected]>2024-11-22 22:09:37 +0000
commit4f8819c36209f5017aed299aeda5893630e11974 (patch)
tree49e8f2d6bb0d6e86de72afe02d87088b311abbb6 /src/cmd.cpp
parentfeat: rewrite core init processes and add env option (diff)
downloadGpgFrontend-4f8819c36209f5017aed299aeda5893630e11974.tar.gz
GpgFrontend-4f8819c36209f5017aed299aeda5893630e11974.zip
feat: improve version option
Diffstat (limited to 'src/cmd.cpp')
-rw-r--r--src/cmd.cpp9
1 files changed, 6 insertions, 3 deletions
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 <[email protected]>" << '\n'
+ stream << QString("Copyright (©) 2021-%1 Saturneric <[email protected]>")
+ .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;