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 |
|---|---|
| Cake |
An attribute used for documentation of alias methods/properties. |
Methods
| Name | Value | Summary |
|---|---|---|
| Argument |
T |
Gets an argument and returns the provided defaultValue if the argument is missing.
static
|
| Argument |
T |
Gets an argument and throws if the argument is missing.
static
|
| Arguments |
IDictionary |
Retrieves all command line arguments.
static
|
| Arguments |
ICollection |
Gets all arguments with the specific name, evaluates and returns the
provided defaultValues if the argument is missing.
static
|
| Arguments |
ICollection |
Gets all arguments with the specific name and returns the
provided defaultValues if the argument is missing.
static
|
| Arguments |
ICollection |
Gets all arguments with the specific name and returns the
provided defaultValue if the argument is missing.
static
|
| Arguments |
ICollection |
Gets all arguments with the specific name and throws if the argument is missing.
static
|
| HasArgument |
bool |
Determines whether or not the specified argument exist.
static
|
Extension Methods
| Name | Value | Summary |
|---|---|---|
| ToDictionary |
IDictionary |
From ObjectHelpers
Requires the Cake.DeployParams addin
|
| To |
string |
Returns the string value or a
Not set> markup suitable for Spectre.Console.
From StringExtensions
Requires the Cake.Issues addin
|
