ArgumentAliases Class

Summary

Contains functionality related to arguments.
Namespace
Cake.Common
Base Types
  • object
graph BT Type-->Base0["object"] Type["ArgumentAliases"] class Type type-node

Syntax

[CakeAliasCategory("Arguments")]
public static class ArgumentAliases

Attributes

Type Description
CakeAliasCategoryAttribute An attribute used for documentation of alias methods/properties.

Methods

Name Value Summary
Argument<T>(ICakeContext, string) T
Gets an argument and throws if the argument is missing.
static
Argument<T>(ICakeContext, string, T) T
Gets an argument and returns the provided defaultValue if the argument is missing.
static
HasArgument(ICakeContext, string) bool
Determines whether or not the specified argument exist.
static