diff options
| author | JP Dillingham <jp@dillingham.me> | 2022-10-01 14:58:12 -0500 |
|---|---|---|
| committer | JP Dillingham <jp@dillingham.me> | 2022-10-01 14:58:12 -0500 |
| commit | a2da84dffa92a0f680c8594ffc024328b313615e (patch) | |
| tree | 636328fc26b0e08f088ae46983dea4eebc9fecd7 /src | |
| parent | efb613beb826bd27b8296c75d61993bdbdcc0bb5 (diff) | |
| download | slskd-a2da84dffa92a0f680c8594ffc024328b313615e.tar.gz | |
add option to force a scan
Diffstat (limited to 'src')
| -rw-r--r-- | src/slskd/Core/Options.cs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/slskd/Core/Options.cs b/src/slskd/Core/Options.cs index 937804de..44cc4c71 100644 --- a/src/slskd/Core/Options.cs +++ b/src/slskd/Core/Options.cs @@ -309,6 +309,15 @@ namespace slskd public bool NoShareScan { get; init; } = false; /// <summary> + /// Gets a value indicating whether shares should be forcibly re-scanned on startup. + /// </summary> + [Argument(default, "force-share-scan")] + [EnvironmentVariable("FORCE_SHARE_SCAN")] + [Description("force a share scan on startup")] + [RequiresRestart] + public bool ForceShareScan { get; init; } = false; + + /// <summary> /// Gets a value indicating whether the application should check for a newer version on startup. /// </summary> [Argument(default, "no-version-check")] |
