aboutsummaryrefslogtreecommitdiff
path: root/zenserver/config.cpp
diff options
context:
space:
mode:
authorMartin Ridgers <[email protected]>2021-10-29 16:24:28 +0200
committerMartin Ridgers <[email protected]>2021-10-29 16:25:43 +0200
commitdf547816fedd656bd981bd440211a9f993a6536e (patch)
treec46cc6734d593c20fdb103ad97ae840564842487 /zenserver/config.cpp
parentGave ZenCacheDiskLayer::CacheBucket a body (diff)
downloadzen-df547816fedd656bd981bd440211a9f993a6536e.tar.xz
zen-df547816fedd656bd981bd440211a9f993a6536e.zip
Don't prompt for user input on POSIX when displaying help
Diffstat (limited to 'zenserver/config.cpp')
-rw-r--r--zenserver/config.cpp5
1 files changed, 5 insertions, 0 deletions
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);
}