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.cs18
1 files changed, 4 insertions, 14 deletions
diff --git a/src/slskd/Core/Options.cs b/src/slskd/Core/Options.cs
index 9e89fc8e..f4ca99e5 100644
--- a/src/slskd/Core/Options.cs
+++ b/src/slskd/Core/Options.cs
@@ -131,24 +131,14 @@ namespace slskd
public bool GenerateCertificate { get; init; } = false;
/// <summary>
- /// Gets a value indicating whether to generate a random API key.
+ /// Gets a value indicating whether to generate a random secret.
/// </summary>
- [Argument('k', "generate-api-key")]
- [Description("generate random API key for HTTP/S")]
+ [Argument('k', "generate-secret")]
+ [Description("generate random secret of the specified length")]
[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;
+ public bool GenerateSecret { get; init; } = false;
/// <summary>
/// Gets a value indicating whether the application should run in debug mode.