Arguments

Summary

Contains functionality related to arguments.

General

Argument<T>(ICakeContext, string) Gets an argument and throws if the argument is missing.
Argument<T>(ICakeContext, string, T) Gets an argument and returns the provided defaultValue if the argument is missing.
Arguments<T>(ICakeContext, string) Gets all arguments with the specific name and throws if the argument is missing.
Arguments<T>(ICakeContext, string, T) Gets all arguments with the specific name and returns the provided defaultValue if the argument is missing.
HasArgument(ICakeContext, string) Determines whether or not the specified argument exist.

Create

CreateFromArguments<T>(ICakeContext, object[])
Alias from Cake.ArgumentBinder addin
Creates an instance of a class that can bind arguments to.

ToString

ArgumentConfigToString<T>(ICakeContext, T)
Alias from Cake.ArgumentBinder addin
Takes in an object that has arguments binded to it, and creates a string-representation of the class.