From da7063a3be3f3fbad0edd4b6aef44ed87396ba41 Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Sat, 8 Oct 2022 16:30:22 -0500 Subject: add --generate-agent-secret --- src/slskd/Core/Options.cs | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'src/slskd/Core') 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,11 +133,21 @@ namespace slskd /// [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; + /// + /// Gets a value indicating whether to generate a random agent secret. + /// + [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; + /// /// Gets a value indicating whether the application should run in debug mode. /// @@ -182,7 +192,7 @@ namespace slskd /// /// Gets the path where application data is saved. /// - [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")] -- cgit v1.2.3