diff options
author | saturneric <[email protected]> | 2024-11-22 22:09:37 +0000 |
---|---|---|
committer | saturneric <[email protected]> | 2024-11-22 22:09:37 +0000 |
commit | 4f8819c36209f5017aed299aeda5893630e11974 (patch) | |
tree | 49e8f2d6bb0d6e86de72afe02d87088b311abbb6 /src/cmd.cpp | |
parent | feat: rewrite core init processes and add env option (diff) | |
download | GpgFrontend-4f8819c36209f5017aed299aeda5893630e11974.tar.gz GpgFrontend-4f8819c36209f5017aed299aeda5893630e11974.zip |
feat: improve version option
Diffstat (limited to 'src/cmd.cpp')
-rw-r--r-- | src/cmd.cpp | 9 |
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; |