diff options
| author | Dmytro Ivanov <[email protected]> | 2024-10-02 15:07:03 +0200 |
|---|---|---|
| committer | Dmytro Ivanov <[email protected]> | 2024-10-02 15:46:41 +0200 |
| commit | 634d01ac6993a63f31eadb26ac49128ae01f9860 (patch) | |
| tree | bd406b0957d3910d42f14f5ce3febcd68d192466 /src/zenserver/config.cpp | |
| parent | add cmake build config to be able to use clion (diff) | |
| download | zen-di/plugin-name-wip.tar.xz zen-di/plugin-name-wip.zip | |
Add plugin name command line parameterdi/plugin-name-wip
Make it possible to load commandline provided plugins
Diffstat (limited to 'src/zenserver/config.cpp')
| -rw-r--r-- | src/zenserver/config.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/zenserver/config.cpp b/src/zenserver/config.cpp index 7466255a9..e817458a1 100644 --- a/src/zenserver/config.cpp +++ b/src/zenserver/config.cpp @@ -568,6 +568,7 @@ void ParseCliOptions(int argc, char* argv[], ZenServerOptions& ServerOptions) { const char* DefaultHttp = "asio"; + const char* DefaultPlugin = ""; #if ZEN_WITH_HTTPSYS if (!zen::windows::IsRunningOnWine()) @@ -710,6 +711,13 @@ ParseCliOptions(int argc, char* argv[], ZenServerOptions& ServerOptions) options.add_option("network", "", + "plugin", + "Select http plugin", + cxxopts::value<std::string>(ServerOptions.HttpServerConfig.PluginName)->default_value(DefaultPlugin), + "<plugin name>"); + + options.add_option("network", + "", "http-threads", "Number of http server connection threads", cxxopts::value<unsigned int>(ServerOptions.HttpServerConfig.ThreadCount), |