print version on --version switch
This commit is contained in:
@@ -10,6 +10,10 @@ Args::Args(const QStringList &args)
|
||||
{
|
||||
this->crashRecovery = true;
|
||||
}
|
||||
else if (arg == "--version")
|
||||
{
|
||||
this->printVersion = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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,5 +1,6 @@
|
||||
#pragma once
|
||||
|
||||
#include <QString>
|
||||
#include <QtGlobal>
|
||||
|
||||
#define CHATTERINO_VERSION "2.1.5"
|
||||
|
||||
Reference in New Issue
Block a user