2019-09-22 15:30:04 +02:00
|
|
|
#pragma once
|
|
|
|
|
2020-09-26 16:03:51 +02:00
|
|
|
#include <QApplication>
|
|
|
|
#include <QJsonArray>
|
2019-10-07 18:57:33 +02:00
|
|
|
|
2019-09-22 15:30:04 +02:00
|
|
|
namespace chatterino {
|
|
|
|
|
|
|
|
/// Command line arguments passed to Chatterino.
|
|
|
|
class Args
|
|
|
|
{
|
|
|
|
public:
|
2020-09-26 16:03:51 +02:00
|
|
|
Args(const QApplication &app);
|
2019-09-22 15:30:04 +02:00
|
|
|
|
2019-10-07 18:57:33 +02:00
|
|
|
bool printVersion{};
|
2019-09-22 15:30:04 +02:00
|
|
|
bool crashRecovery{};
|
2020-09-26 16:03:51 +02:00
|
|
|
bool shouldRunBrowserExtensionHost{};
|
|
|
|
bool dontSaveSettings{};
|
|
|
|
QJsonArray channelsToJoin{};
|
2019-09-22 15:30:04 +02:00
|
|
|
};
|
|
|
|
|
2020-09-26 16:03:51 +02:00
|
|
|
void initArgs(const QApplication &app);
|
2019-09-22 15:30:04 +02:00
|
|
|
const Args &getArgs();
|
|
|
|
|
|
|
|
} // namespace chatterino
|