#pragma once #include #include #include "common/WindowDescriptors.hpp" namespace chatterino { /// Command line arguments passed to Chatterino. class Args { public: Args(const QApplication &app); bool printVersion{}; bool crashRecovery{}; bool shouldRunBrowserExtensionHost{}; // Shows a single chat. Used on windows to embed in another application. bool isFramelessEmbed{}; boost::optional parentWindowId{}; // Not settings directly bool dontSaveSettings{}; bool dontLoadMainWindow{}; boost::optional customChannelLayout; bool verbose{}; private: void applyCustomChannelLayout(const QString &argValue); }; void initArgs(const QApplication &app); const Args &getArgs(); } // namespace chatterino