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.
This commit is contained in:
Kevin Bost
2023-05-05 14:46:29 -07:00
parent 446e457773
commit 2cbb6c9754

View File

@@ -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;
}