Tweak alias rendering.

This commit is contained in:
Adam Patridge 2017-06-15 13:09:01 -06:00
parent 89f4dc8438
commit 64b8e154ef

View file

@ -12,7 +12,9 @@ Just reference the Cake.ArgumentHelpers NuGet package directly in your build scr
Yep, just one so far...
### `bool ArgumentOrEnvironmentVariable(..., string name, string environmentNamePrefix, bool defaultValue)`
### ArgumentOrEnvironmentVariable
`bool ArgumentOrEnvironmentVariable(..., string name, string environmentNamePrefix, bool defaultValue)`
Since `EnvironmentVariable` always returns a string, it is more complex to involve it in an `Argument` call with a fallback. This alias makes it a single call, hiding away the string comparison done to massage the result to a `bool` value.