mirror of
https://github.com/velopack/velopack.git
synced 2025-10-25 15:19:22 +00:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user