From a33fb96524b48f3d0636b157003a7f2b5f98b2a5 Mon Sep 17 00:00:00 2001 From: Per Larsson Date: Wed, 22 Sep 2021 09:28:19 +0200 Subject: Don't exit until any key pressed when showing help (tmp fix). --- zenserver/config.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'zenserver') diff --git a/zenserver/config.cpp b/zenserver/config.cpp index 164d2a792..af28168a5 100644 --- a/zenserver/config.cpp +++ b/zenserver/config.cpp @@ -17,6 +17,8 @@ #include #include +#include + #if ZEN_PLATFORM_WINDOWS // Used for getting My Documents for default data directory @@ -219,7 +221,8 @@ ParseGlobalCliOptions(int argc, char* argv[], ZenServerOptions& GlobalOptions, Z if (result.count("help")) { zen::logging::ConsoleLog().info("{}", options.help()); - + zen::logging::ConsoleLog().info("Press any key to exit!"); + _getch(); exit(0); } -- cgit v1.2.3