CakeConfigurationExtensions.

GetVerbosity(ICakeConfiguration, Verbosity?, Verbosity) Method

Summary

Gets the verbosity level from an explicit command-line value, falling back to configuration.
Namespace
Cake.Core
Containing Type
CakeConfigurationExtensions

Syntax

public static Verbosity GetVerbosity(this ICakeConfiguration configuration, Verbosity? commandLineVerbosity, Verbosity defaultValue = Normal)

Parameters

Name Type Description
configuration ICakeConfiguration The Cake configuration.
commandLineVerbosity Verbosity? The verbosity specified on the command line, if any.
defaultValue Verbosity The value to return when the command line is unset and the configuration key is missing or invalid.

Return Value

Type Description
Verbosity commandLineVerbosity when it has a value; otherwise the configured verbosity, or defaultValue if not found or invalid.