diff options
| author | JP Dillingham <jpdillingham@gmail.com> | 2021-08-04 10:29:16 -0500 |
|---|---|---|
| committer | JP Dillingham <jpdillingham@gmail.com> | 2021-08-04 10:29:16 -0500 |
| commit | 3cb5eedb1834859dfee1257bb3d71737cc375912 (patch) | |
| tree | aad68721a752eed5c6ed9b76b1d9b9ef4510a20d /src | |
| parent | 0aaf9ff434e07097b9c7844a9c00dc3517479203 (diff) | |
| download | slskd-3cb5eedb1834859dfee1257bb3d71737cc375912.tar.gz | |
add NoShareScan option
Diffstat (limited to 'src')
| -rw-r--r-- | src/slskd/Options.cs | 13 |
1 files changed, 12 insertions, 1 deletions
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,6 +150,9 @@ namespace slskd [RequiresRestart] public bool NoStart { get; private set; } = false; + /// <summary> + /// Gets a value indicating whether the application should connect to the Soulseek network on startup. + /// </summary> [Argument(default, "no-connect")] [EnvironmentVariable("NO_CONNECT")] [Description("do not connect to the Soulseek network on startup")] @@ -157,6 +160,15 @@ namespace slskd public bool NoConnect { get; private set; } = false; /// <summary> + /// Gets a value indicating whether the application should scan shared directories on startup. + /// </summary> + [Argument(default, "no-share-scan")] + [EnvironmentVariable("NO_SHARE_SCAN")] + [Description("do not scan shares on startup")] + [RequiresRestart] + public bool NoShareScan { get; private set; } = true; + + /// <summary> /// Gets the unique name for this instance. /// </summary> [Argument('i', "instance-name")] @@ -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 }; } |
