Skip to content

Commit c9f2c95

Browse files
author
Pascal Berger
committed
Ignore - and / for switches when determine if they are boolean arguments
1 parent 6308f89 commit c9f2c95

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/GitVersionExe/ArgumentParser.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,7 @@ static bool IsBooleanArgument(string switchName)
393393
"nofetch"
394394
};
395395

396-
return booleanArguments.Contains(switchName, StringComparer.OrdinalIgnoreCase);
396+
return booleanArguments.Contains(switchName.Substring(1), StringComparer.OrdinalIgnoreCase);
397397
}
398398
}
399399
}

0 commit comments

Comments
 (0)