Make CLI and GUI version info match (#1853)

`flameshot --version` now includes the git commit hash, same as the
About window.

Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com>
This commit is contained in:
Haris Gušić
2021-08-30 15:39:59 +02:00
committed by GitHub
parent 69a43fb791
commit d54a515574
5 changed files with 15 additions and 15 deletions

View File

@@ -2,6 +2,7 @@
// SPDX-FileCopyrightText: 2017-2019 Alejandro Sirgo Rica & Contributors
#include "commandlineparser.h"
#include "src/utils/globalvalues.h"
#include <QApplication>
#include <QTextStream>
@@ -305,8 +306,7 @@ QString CommandLineParser::value(const CommandOption& option) const
void CommandLineParser::printVersion()
{
out << "Flameshot " << qApp->applicationVersion() << "\nCompiled with Qt "
<< static_cast<QString>(QT_VERSION_STR) << "\n";
out << GlobalValues::versionInfo() << QStringLiteral("\n");
}
void CommandLineParser::printHelp(QStringList args, const Node* node)