Cake.ArgumentHelpers

Cake add-on trying to make it easier to handle various inputs from arguments and environment variable.

#addin nuget:?package=Cake.ArgumentHelpers&version=1.0.0

dotnet add package Cake.ArgumentHelpers --version 1.0.0

<PackageReference Include="Cake.ArgumentHelpers" Version="1.0.0" />

Aliases

Contains Aliases for helping work with combinations of Argument and Environment variables.

Argument or environment variable

ArgumentOrEnvironmentVariable(string, bool) Get a bool variable from various script inputs: first via Argument, then falling back on EnvironmentVariable, finally falling back on a default.
ArgumentOrEnvironmentVariable(string, string, bool) Get a bool variable from various script inputs: first via Argument, then falling back on EnvironmentVariable, finally falling back on a default.
ArgumentOrEnvironmentVariable(string, string, string) Get a string variable from various script inputs: first via Argument, then falling back on EnvironmentVariable, finally falling back on a default.
ArgumentOrEnvironmentVariable(string, string) Get a string variable from various script inputs: first via Argument, then falling back on EnvironmentVariable, finally falling back on a default.