aboutsummaryrefslogtreecommitdiffstats
path: root/src/slskd/Core/Options.cs
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2024-06-18 07:50:58 -0500
committerGitHub <noreply@github.com>2024-06-18 07:50:58 -0500
commit6d8aa0fcb9cbfe22309139fe9e8b9f86027352e8 (patch)
tree5a9fc027f35af593fb5c1168bfbeaeec24acdaf3 /src/slskd/Core/Options.cs
parent6e77c4f214c9d8a258c1e39c465cc63fc1912850 (diff)
parent2c45386bfa4ad1a8a9dd5cf5793ee895ec0aeeaa (diff)
downloadslskd-6d8aa0fcb9cbfe22309139fe9e8b9f86027352e8.tar.gz
Merge branch 'colors' into feat/config-console-log-colour
Diffstat (limited to 'src/slskd/Core/Options.cs')
-rw-r--r--src/slskd/Core/Options.cs10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/slskd/Core/Options.cs b/src/slskd/Core/Options.cs
index a8c3b029..8aa915fc 100644
--- a/src/slskd/Core/Options.cs
+++ b/src/slskd/Core/Options.cs
@@ -744,7 +744,7 @@ namespace slskd
bool IsBlankPath(string share) => Regex.IsMatch(share.LocalizePath(), @"^(!|-){0,1}(\[.*\])$");
directories?.Where(share => IsBlankPath(share)).ToList()
- .ForEach(blank => results.Add(new ValidationResult($"Share {blank} doees not specify a path")));
+ .ForEach(blank => results.Add(new ValidationResult($"Share {blank} does not specify a path")));
bool IsRootMount(string share) => Regex.IsMatch(share.LocalizePath(), @"^(!|-){0,1}(\[.*\])/$");
directories?.Where(share => IsRootMount(share)).ToList()
@@ -1289,11 +1289,11 @@ namespace slskd
/// <summary>
/// Gets a value indicating whether to write logs to disk.
/// </summary>
- [Argument(default, "no-disk-logger")]
- [EnvironmentVariable("NO_DISK_LOGGER")]
- [Description("disable logging to disk")]
+ [Argument(default, "disk-logger")]
+ [EnvironmentVariable("DISK_LOGGER")]
+ [Description("enable logging to disk")]
[RequiresRestart]
- public bool Disk { get; init; } = true;
+ public bool Disk { get; init; } = false;
/// <summary>
/// Gets a value indicating whether console logs should be colorized.