aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/slskd/Core/Options.cs9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/slskd/Core/Options.cs b/src/slskd/Core/Options.cs
index 32188aef..ff9cc407 100644
--- a/src/slskd/Core/Options.cs
+++ b/src/slskd/Core/Options.cs
@@ -152,6 +152,15 @@ namespace slskd
public bool Debug { get; init; } = Debugger.IsAttached;
/// <summary>
+ /// Gets a value indicating whether the application should run in headless (no web UI) mode.
+ /// </summary>
+ [Argument('H', "headless")]
+ [EnvironmentVariable("HEADLESS")]
+ [Description("run in headless (no web UI) mode")]
+ [RequiresRestart]
+ public bool Headless { get; init; } = false;
+
+ /// <summary>
/// Gets a value indicating whether remote configuration of options is allowed.
/// </summary>
[Argument(default, "remote-configuration")]