aboutsummaryrefslogtreecommitdiffstats
path: root/src/slskd/Core/Options.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/slskd/Core/Options.cs')
-rw-r--r--src/slskd/Core/Options.cs14
1 files changed, 12 insertions, 2 deletions
diff --git a/src/slskd/Core/Options.cs b/src/slskd/Core/Options.cs
index 02000869..a63154b4 100644
--- a/src/slskd/Core/Options.cs
+++ b/src/slskd/Core/Options.cs
@@ -133,12 +133,22 @@ namespace slskd
/// </summary>
[Argument('k', "generate-api-key")]
[Description("generate random API key for HTTP/S")]
- [Obsolete("USed only for documentation; see Program for actual implementation")]
+ [Obsolete("Used only for documentation; see Program for actual implementation")]
[JsonIgnore]
[YamlIgnore]
public bool GenerateApiKey { get; init; } = false;
/// <summary>
+ /// Gets a value indicating whether to generate a random agent secret.
+ /// </summary>
+ [Argument('t', "generate-agent-secret")]
+ [Description("generate random agent secret")]
+ [Obsolete("Used only for documentation; see Program for actual implementation")]
+ [JsonIgnore]
+ [YamlIgnore]
+ public bool GenerateAgentSecret { get; init; } = false;
+
+ /// <summary>
/// Gets a value indicating whether the application should run in debug mode.
/// </summary>
[Argument('d', "debug")]
@@ -182,7 +192,7 @@ namespace slskd
/// <summary>
/// Gets the path where application data is saved.
/// </summary>
- [Argument(default, "app")]
+ [Argument('a', "app-dir")]
[EnvironmentVariable("APP_DIR")]
[Description("path where application data is saved")]
[Obsolete("Used only for documentation; see Program for actual implementation")]