mirror-chatterino2/src/common/Args.hpp

25 lines
441 B
C++
Raw Normal View History

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