summaryrefslogtreecommitdiff
path: root/src/client.h
diff options
context:
space:
mode:
authorThorbjørn Lindeijer <bjorn@lindeijer.nl>2024-03-02 17:38:22 +0100
committerThorbjørn Lindeijer <bjorn@lindeijer.nl>2024-03-02 17:38:25 +0100
commita25d857ed0bebc2c3e1473d06bea89286941886c (patch)
tree99c8069acb1b2c756951d3047d73db4cf1b6b4b4 /src/client.h
parent72ceaaa426166bfa425f519c2418a66872839e12 (diff)
downloadmana-a25d857ed0bebc2c3e1473d06bea89286941886c.tar.gz
mana-a25d857ed0bebc2c3e1473d06bea89286941886c.tar.bz2
mana-a25d857ed0bebc2c3e1473d06bea89286941886c.tar.xz
mana-a25d857ed0bebc2c3e1473d06bea89286941886c.zip
Exit with error when invalid server type is passed on CLI
Also made it exit with error when there is an unknown option or missing argument.
Diffstat (limited to 'src/client.h')
-rw-r--r--src/client.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/client.h b/src/client.h
index ccee43ba..dfcc3e70 100644
--- a/src/client.h
+++ b/src/client.h
@@ -135,6 +135,7 @@ public:
bool skipUpdate = false;
bool chooseDefault = false;
bool noOpenGL = false;
+ bool exitWithError = false;
std::string username;
std::string password;
std::string character;
@@ -145,7 +146,7 @@ public:
std::string configDir;
std::string localDataDir;
std::string screenshotDir;
- std::string serverType;
+ ServerType serverType = ServerType::UNKNOWN;
std::string serverName;
uint16_t serverPort = 0;