diff options
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 }; } |
