IRemainingArgumentsExtensions.

ToCakeArguments(IRemainingArguments, string[], Action<IDictionary<string, List<string>>>) Method

Summary

Parses Spectre.Console IRemainingArguments to CakeArguments.

Syntax

public static CakeArguments ToCakeArguments(this IRemainingArguments remainingArguments, string[] targets = null, Action<IDictionary<string, List<string>>> preProcessArgs = null)

Parameters

Name Type Description
remainingArguments IRemainingArguments The remainingArguments.
targets string[] The optional targets, i.e. if specified by command.
preProcessArgs Action<IDictionary<string, List<string>>> The optional pre-process arguments.

Return Value

Type Description
CakeArguments CakeArguments.