diff options
| author | Per Larsson <[email protected]> | 2022-01-11 10:30:06 +0100 |
|---|---|---|
| committer | Per Larsson <[email protected]> | 2022-01-11 10:30:06 +0100 |
| commit | df6cc027049089501a6ca9427400277492b8e5a4 (patch) | |
| tree | 9f7e71215074faf2b32e8f83da8c3a8af45fd5d6 /zenserver/config.cpp | |
| parent | Fixed error in if-statement comparison (diff) | |
| download | zen-df6cc027049089501a6ca9427400277492b8e5a4.tar.xz zen-df6cc027049089501a6ca9427400277492b8e5a4.zip | |
Added option to disable Sentry crash handler.
Diffstat (limited to 'zenserver/config.cpp')
| -rw-r--r-- | zenserver/config.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/zenserver/config.cpp b/zenserver/config.cpp index 722bc3b97..f7b2f15fa 100644 --- a/zenserver/config.cpp +++ b/zenserver/config.cpp @@ -139,6 +139,9 @@ ParseCliOptions(int argc, char* argv[], ZenServerOptions& ServerOptions) options.add_options()("content-dir", "Frontend content directory", cxxopts::value<std::filesystem::path>(ServerOptions.ContentDir)); options.add_options()("abslog", "Path to log file", cxxopts::value<std::filesystem::path>(ServerOptions.AbsLogFile)); options.add_options()("config", "Path to Lua config file", cxxopts::value<std::filesystem::path>(ServerOptions.ConfigFile)); + options.add_options()("no-sentry", + "Disable Sentry crash handler", + cxxopts::value<bool>(ServerOptions.NoSentry)->default_value("false")); options .add_option("lifetime", "", "owner-pid", "Specify owning process id", cxxopts::value<int>(ServerOptions.OwnerPid), "<identifier>"); |