aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--config/slskd.example.yml1
-rw-r--r--docs/config.md1
-rw-r--r--src/slskd/Core/Options.cs9
3 files changed, 11 insertions, 0 deletions
diff --git a/config/slskd.example.yml b/config/slskd.example.yml
index d29a4eb9..47404794 100644
--- a/config/slskd.example.yml
+++ b/config/slskd.example.yml
@@ -1,4 +1,5 @@
# debug: false
+# experimental: false
# remote_configuration: false
# instance_name: default
# flags:
diff --git a/docs/config.md b/docs/config.md
index bc975b4b..8403b76f 100644
--- a/docs/config.md
+++ b/docs/config.md
@@ -693,6 +693,7 @@ A number of additional feature flags are provided to change the runtime behavior
| Flag | Environment Variable | Description |
| -------------------- | -------------------- | ---------------------------------------------------------------- |
| `-d\|--debug` | `DEBUG` | Run the application in debug mode. Produces verbose log output. |
+| `--experimental` | `EXPERIMENTAL` | Run the application in experimental mode. YMMV. |
| `-n\|--no-logo` | `NO_LOGO` | Don't show the application logo on startup |
| `-x\|--no-start` | `NO_START` | Bootstrap the application, but don't start |
| `--no-connect` | `NO_CONNECT` | Start the application, but don't connect to the server |
diff --git a/src/slskd/Core/Options.cs b/src/slskd/Core/Options.cs
index a1db929a..3ce620c1 100644
--- a/src/slskd/Core/Options.cs
+++ b/src/slskd/Core/Options.cs
@@ -136,6 +136,15 @@ namespace slskd
public bool Debug { get; init; } = Debugger.IsAttached;
/// <summary>
+ /// Gets a value indicating whether the application should run in experimental mode.
+ /// </summary>
+ [Argument(default, "experimental")]
+ [EnvironmentVariable("EXPERIMENTAL")]
+ [Description("run in experimental mode")]
+ [RequiresRestart]
+ public bool Experimental { get; init; } = false;
+
+ /// <summary>
/// Gets a value indicating whether remote configuration of options is allowed.
/// </summary>
[Argument(default, "remote-configuration")]