Summary
Sets the tool argument customization delegate.
Syntax
public static T WithArgumentCustomization<T>(this T toolSettings, Func<ProcessArgumentBuilder, ProcessArgumentBuilder> argumentCustomization)
where T : ToolSettings
Examples
Command(
new[] { "dotnet", "dotnet.exe" },
settingsCustomization: settings => settings
.WithToolPath("./tools/dotnet")
.WithArgumentCustomization(args => args.Append("--version"))
.WithExpectedExitCode(0));
Type Parameters
| Name |
Description |
| T |
The ToolSettings type. |
Parameters
Return Value
| Type |
Description |
| T |
The tools settings. |