diff options
| author | JP Dillingham <jpdillingham@gmail.com> | 2022-10-30 12:19:33 -0500 |
|---|---|---|
| committer | JP Dillingham <jpdillingham@gmail.com> | 2022-10-30 12:19:33 -0500 |
| commit | 915ed6aa255636cfd339e9b53b4da202a3799f98 (patch) | |
| tree | b7d5848069f15ced13e4deca922fb4802a87eafc /src/slskd/Core/Options.cs | |
| parent | e483a797f8f2a1b50397a6a72cac03430ac5dcb6 (diff) | |
| download | slskd-915ed6aa255636cfd339e9b53b4da202a3799f98.tar.gz | |
consolidate secret generation
Diffstat (limited to 'src/slskd/Core/Options.cs')
| -rw-r--r-- | src/slskd/Core/Options.cs | 18 |
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. |
