diff options
| author | Stefan Boberg <[email protected]> | 2021-08-21 18:48:52 +0200 |
|---|---|---|
| committer | Stefan Boberg <[email protected]> | 2021-08-21 18:48:52 +0200 |
| commit | 276bb86fca388416428613dec981e4e5eb927081 (patch) | |
| tree | a42f0beb32fd1e61754e007d6ce26809f060a993 /zenserver/config.cpp | |
| parent | Improved comment while reviewing code (diff) | |
| download | zen-276bb86fca388416428613dec981e4e5eb927081.tar.xz zen-276bb86fca388416428613dec981e4e5eb927081.zip | |
Improved crash reporting setup and removed old stubs
Also added ability to exercise crash reporting from command line
Diffstat (limited to 'zenserver/config.cpp')
| -rw-r--r-- | zenserver/config.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/zenserver/config.cpp b/zenserver/config.cpp index 79433f20c..6d725e55b 100644 --- a/zenserver/config.cpp +++ b/zenserver/config.cpp @@ -88,6 +88,13 @@ ParseGlobalCliOptions(int argc, char* argv[], ZenServerOptions& GlobalOptions, Z cxxopts::value<bool>(ServiceConfig.MeshEnabled)->default_value("true"), ""); + options.add_option("diagnostics", + "", + "crash", + "Simulate a crash", + cxxopts::value<bool>(ServiceConfig.ShouldCrash)->default_value("false"), + ""); + try { auto result = options.parse(argc, argv); |