print version on --version switch

This commit is contained in:
fourtf
2019-10-07 18:57:33 +02:00
parent 05bcf22af4
commit 594c0fb255
4 changed files with 17 additions and 1 deletions
+4
View File
@@ -10,6 +10,10 @@ Args::Args(const QStringList &args)
{
this->crashRecovery = true;
}
else if (arg == "--version")
{
this->printVersion = true;
}
}
}
+3
View File
@@ -1,5 +1,7 @@
#pragma once
#include <QStringList>
namespace chatterino {
/// Command line arguments passed to Chatterino.
@@ -8,6 +10,7 @@ class Args
public:
Args(const QStringList &args);
bool printVersion{};
bool crashRecovery{};
};
+1
View File
@@ -1,5 +1,6 @@
#pragma once
#include <QString>
#include <QtGlobal>
#define CHATTERINO_VERSION "2.1.5"