aboutsummaryrefslogtreecommitdiff
path: root/src/zenserver/config.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/zenserver/config.cpp')
-rw-r--r--src/zenserver/config.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/zenserver/config.cpp b/src/zenserver/config.cpp
index 2023a9d51..4fc928d2c 100644
--- a/src/zenserver/config.cpp
+++ b/src/zenserver/config.cpp
@@ -577,7 +577,15 @@ ParseCliOptions(int argc, char* argv[], ZenServerOptions& ServerOptions)
}
#endif
- ServerOptions.CommandLine = fmt::format("{}", fmt::join(std::span<const char*>((const char**)argv, size_t(argc)), " "));
+ for (int i = 0; i < argc; ++i)
+ {
+ if (i)
+ {
+ ServerOptions.CommandLine.push_back(' ');
+ }
+
+ ServerOptions.CommandLine += argv[i];
+ }
// Note to those adding future options; std::filesystem::path-type options
// must be read into a std::string first. As of cxxopts-3.0.0 it uses a >>