public static string ArgumentOrEnvironmentVariable(this ICakeContext context, string name, string environmentNamePrefix, string defaultValue = null)
 {
     return(ArgumentAliases.Argument <string>(
                context,
                name,
                EnvironmentAliases.EnvironmentVariable(context, EnvVarName(environmentNamePrefix, name))) ??
            defaultValue);
 }
 public static bool ArgumentOrEnvironmentVariable(this ICakeContext context, string name, string environmentNamePrefix, bool defaultValue)
 {
     return(ArgumentAliases.Argument(
                context,
                name,
                EnvironmentAliases.EnvironmentVariable(context, EnvVarName(environmentNamePrefix, name))
                ?? defaultValue.ToString())
            .Equals("true", StringComparison.OrdinalIgnoreCase));
 }