2022-06-08 11:52:07 -04:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "launchercore.h"
|
2022-08-15 11:14:37 -04:00
|
|
|
#include <QCommandLineParser>
|
2022-06-08 11:52:07 -04:00
|
|
|
|
|
|
|
/*
|
|
|
|
* The CLI interface for Astra, driven primarily by the command-line.
|
|
|
|
*/
|
|
|
|
class CMDInterface {
|
|
|
|
public:
|
2022-09-05 17:26:26 -04:00
|
|
|
explicit CMDInterface(QCommandLineParser& parser);
|
2022-06-08 11:52:07 -04:00
|
|
|
|
|
|
|
bool parse(QCommandLineParser& parser, LauncherCore& core);
|
|
|
|
|
|
|
|
private:
|
2022-08-15 11:14:37 -04:00
|
|
|
QCommandLineOption profileOption = {
|
|
|
|
"default-profile",
|
|
|
|
"Profile to use for default profile and autologin.",
|
|
|
|
"profile"};
|
|
|
|
QCommandLineOption autologinOption = {
|
|
|
|
"autologin",
|
|
|
|
"Auto-login with the default profile. This requires the profile to have remember username/password enabled!"};
|
2022-06-08 11:52:07 -04:00
|
|
|
};
|