mirror of
https://github.com/velopack/velopack.git
synced 2025-10-25 15:19:22 +00:00
Merge pull request #159 from Keboo/fixMinMax
Fix so that --signParallel uses min/max
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