From 2cbb6c9754ab9b280dc8ca4665ff8440f22f631e Mon Sep 17 00:00:00 2001 From: Kevin Bost Date: Fri, 5 May 2023 14:46:29 -0700 Subject: [PATCH] Fix so that --signParallel uses min/max The validator for the --signParallel validator was not using the passed in minimum or maximum. These were set the same so the code was working but this fixes it to make it match. --- src/Squirrel.CommandLine/SystemCommandLineExtensions.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Squirrel.CommandLine/SystemCommandLineExtensions.cs b/src/Squirrel.CommandLine/SystemCommandLineExtensions.cs index 144cab47..197b4c9a 100644 --- a/src/Squirrel.CommandLine/SystemCommandLineExtensions.cs +++ b/src/Squirrel.CommandLine/SystemCommandLineExtensions.cs @@ -155,7 +155,7 @@ namespace Squirrel.CommandLine { for (int i = 0; i < result.Tokens.Count; i++) { if (int.TryParse(result.Tokens[i].Value, out int value)) { - if (value is < 1 or > 1000) { + if (value < minimum || value > maximum) { result.ErrorMessage = $"The value for {result.Token.Value} must be greater than {minimum} and less than {maximum}"; break; }