From a2da84dffa92a0f680c8594ffc024328b313615e Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Sat, 1 Oct 2022 14:58:12 -0500 Subject: add option to force a scan --- src/slskd/Core/Options.cs | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src') 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 @@ -308,6 +308,15 @@ namespace slskd [RequiresRestart] public bool NoShareScan { get; init; } = false; + /// + /// Gets a value indicating whether shares should be forcibly re-scanned on startup. + /// + [Argument(default, "force-share-scan")] + [EnvironmentVariable("FORCE_SHARE_SCAN")] + [Description("force a share scan on startup")] + [RequiresRestart] + public bool ForceShareScan { get; init; } = false; + /// /// Gets a value indicating whether the application should check for a newer version on startup. /// -- cgit v1.2.3