From a25d857ed0bebc2c3e1473d06bea89286941886c Mon Sep 17 00:00:00 2001 From: Thorbjørn Lindeijer Date: Sat, 2 Mar 2024 17:38:22 +0100 Subject: 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. --- src/client.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/client.h') 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; -- cgit v1.2.3-70-g09d2