aboutsummaryrefslogtreecommitdiff
path: root/src/server/bnetserver/Main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/server/bnetserver/Main.cpp')
-rw-r--r--src/server/bnetserver/Main.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/server/bnetserver/Main.cpp b/src/server/bnetserver/Main.cpp
index 42a85e4f8ff..5b3081c5a2d 100644
--- a/src/server/bnetserver/Main.cpp
+++ b/src/server/bnetserver/Main.cpp
@@ -157,6 +157,9 @@ int main(int argc, char** argv)
if (!StartDB())
return 1;
+ if (vm.count("update-databases-only"))
+ return 0;
+
sSecretMgr->Initialize(SECRET_OWNER_BNETSERVER);
sSessionMgr.FixLegacyAuthHashes();
@@ -340,6 +343,7 @@ variables_map GetConsoleArguments(int argc, char** argv, fs::path& configFile, s
("version,v", "print version build info")
("config,c", value<fs::path>(&configFile)->default_value(fs::absolute(_TRINITY_BNET_CONFIG)),
"use <arg> as configuration file")
+ ("update-databases-only,u", "updates databases only")
;
#if TRINITY_PLATFORM == TRINITY_PLATFORM_WINDOWS
options_description win("Windows platform specific options");