aboutsummaryrefslogtreecommitdiffstats
path: root/src/slskd/Core
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2025-02-23 17:00:01 -0600
committerJP Dillingham <jp@dillingham.me>2025-02-23 17:00:01 -0600
commitf435c1e2e58c16cf33098bab4f946bb7fa0c30be (patch)
treea384711493a1dccd3779de50e0bb2c8155935588 /src/slskd/Core
parent4706c88aff538cc175111d9a7ecb28e37f378a52 (diff)
downloadslskd-f435c1e2e58c16cf33098bab4f946bb7fa0c30be.tar.gz
adjust validation messages
Diffstat (limited to 'src/slskd/Core')
-rw-r--r--src/slskd/Core/Options.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/slskd/Core/Options.cs b/src/slskd/Core/Options.cs
index 440cd8a4..5c9c756c 100644
--- a/src/slskd/Core/Options.cs
+++ b/src/slskd/Core/Options.cs
@@ -2198,7 +2198,7 @@ namespace slskd
if ((cmdIsSet && exeIsSet) || (!cmdIsSet && !exeIsSet))
{
- yield return new ValidationResult($"One and only one of the fields {nameof(Command)} or {nameof(Executable)} may be specified for a single script");
+ yield return new ValidationResult($"One and only one of the fields {nameof(Command)} or {nameof(Executable)} may be specified for a single script. If you intend to use the system shell, omit 'executable'. If you intend to use an executable other than the system shell, omit 'command' and specify either 'args' or 'args_list'.");
}
var argsIsSet = !string.IsNullOrWhiteSpace(Args);
@@ -2206,7 +2206,7 @@ namespace slskd
if (argsIsSet && argsListIsSet)
{
- yield return new ValidationResult($"Only one of the fields {nameof(Args)} or {nameof(ArgsList)} may be specified for a single script");
+ yield return new ValidationResult($"Only one of the fields {nameof(Args)} or {nameof(ArgsList)} may be specified for a single script. Specify 'args' if you intend to construct a single quoted string yourself, and specify 'args_list' if you'd like slskd to handle quoting for you.");
}
}
}