diff options
| author | JP Dillingham <jp@dillingham.me> | 2022-10-08 16:30:22 -0500 |
|---|---|---|
| committer | JP Dillingham <jp@dillingham.me> | 2022-10-08 16:30:22 -0500 |
| commit | da7063a3be3f3fbad0edd4b6aef44ed87396ba41 (patch) | |
| tree | 0d6593156910ef622c7fa80b45f25f3789117649 /src/slskd/Core | |
| parent | 6485968c3b04cedbcde2d448caa79d065507e1f5 (diff) | |
| download | slskd-da7063a3be3f3fbad0edd4b6aef44ed87396ba41.tar.gz | |
add --generate-agent-secret
Diffstat (limited to 'src/slskd/Core')
| -rw-r--r-- | src/slskd/Core/Options.cs | 14 |
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")] |
