From df547816fedd656bd981bd440211a9f993a6536e Mon Sep 17 00:00:00 2001 From: Martin Ridgers Date: Fri, 29 Oct 2021 16:24:28 +0200 Subject: Don't prompt for user input on POSIX when displaying help --- zenserver/config.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'zenserver/config.cpp') diff --git a/zenserver/config.cpp b/zenserver/config.cpp index f761c6a8d..2b7705fd4 100644 --- a/zenserver/config.cpp +++ b/zenserver/config.cpp @@ -253,8 +253,13 @@ ParseGlobalCliOptions(int argc, char* argv[], ZenServerOptions& GlobalOptions, Z if (result.count("help")) { zen::logging::ConsoleLog().info("{}", options.help()); +#if ZEN_PLATFORM_WINDOWS zen::logging::ConsoleLog().info("Press any key to exit!"); _getch(); +#else + // Assume the user's in a terminal on all other platforms and that + // they'll use less/more/etc. if need be. +#endif exit(0); } -- cgit v1.2.3