aboutsummaryrefslogtreecommitdiffstats
path: root/src/slskd
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2024-12-18 15:57:02 -0600
committerJP Dillingham <jp@dillingham.me>2024-12-18 15:57:02 -0600
commitd2dd0c85b8966bf20b8bfbf896c460db794c461c (patch)
tree3b437ef1dc3845e76f770a03867a8344d67c9cb4 /src/slskd
parentcfcdeff46861cdd11a5cbafe533ce08bda584566 (diff)
downloadslskd-d2dd0c85b8966bf20b8bfbf896c460db794c461c.tar.gz
add headless option
Diffstat (limited to 'src/slskd')
-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")]