From 3cb5eedb1834859dfee1257bb3d71737cc375912 Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Wed, 4 Aug 2021 10:29:16 -0500 Subject: add NoShareScan option --- src/slskd/Options.cs | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/slskd/Options.cs b/src/slskd/Options.cs index 793ab1d8..93895a2e 100644 --- a/src/slskd/Options.cs +++ b/src/slskd/Options.cs @@ -150,12 +150,24 @@ namespace slskd [RequiresRestart] public bool NoStart { get; private set; } = false; + /// + /// Gets a value indicating whether the application should connect to the Soulseek network on startup. + /// [Argument(default, "no-connect")] [EnvironmentVariable("NO_CONNECT")] [Description("do not connect to the Soulseek network on startup")] [RequiresRestart] public bool NoConnect { get; private set; } = false; + /// + /// Gets a value indicating whether the application should scan shared directories on startup. + /// + [Argument(default, "no-share-scan")] + [EnvironmentVariable("NO_SHARE_SCAN")] + [Description("do not scan shares on startup")] + [RequiresRestart] + public bool NoShareScan { get; private set; } = true; + /// /// Gets the unique name for this instance. /// @@ -245,7 +257,6 @@ namespace slskd [Argument('s', "shared")] [EnvironmentVariable("SHARED_DIR")] [Description("path to shared files")] - [RequiresRestart] public string[] Shared { get; private set; } = new[] { Program.DefaultSharedDirectory }; } -- cgit v1.2.3