aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJP Dillingham <jpdillingham@gmail.com>2021-08-04 10:29:16 -0500
committerJP Dillingham <jpdillingham@gmail.com>2021-08-04 10:29:16 -0500
commit3cb5eedb1834859dfee1257bb3d71737cc375912 (patch)
treeaad68721a752eed5c6ed9b76b1d9b9ef4510a20d
parent0aaf9ff434e07097b9c7844a9c00dc3517479203 (diff)
downloadslskd-3cb5eedb1834859dfee1257bb3d71737cc375912.tar.gz
add NoShareScan option
-rw-r--r--src/slskd/Options.cs13
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 };
}