Summary
Retrieves all command line arguments.
Syntax
[CakeMethodAlias]
public static IDictionary<string, ICollection<string>> Arguments(this ICakeContext context)
Examples
var args = context.Arguments();
if (args.ContainsKey("verbose"))
{
Information("Verbose output enabled");
}
foreach(var arg in args)
{
Information(
"Key: {0}\tValue: \"{1}\"",
arg.Key,
string.Join(";", arg.Value)
);
}
Attributes
Parameters
Return Value
Type |
Description |
IDictionary<string, ICollection<string>> |
The command line arguments. |