Edit

Share via


CommandLineBuilderExtensions.UseTokenReplacer Method

Definition

Specifies a delegate used to replace any token prefixed with @ with zero or more other tokens, prior to parsing.

public:
[System::Runtime::CompilerServices::Extension]
 static System::CommandLine::Builder::CommandLineBuilder ^ UseTokenReplacer(System::CommandLine::Builder::CommandLineBuilder ^ builder, System::CommandLine::Parsing::TryReplaceToken ^ replaceToken);
public static System.CommandLine.Builder.CommandLineBuilder UseTokenReplacer(this System.CommandLine.Builder.CommandLineBuilder builder, System.CommandLine.Parsing.TryReplaceToken? replaceToken);
static member UseTokenReplacer : System.CommandLine.Builder.CommandLineBuilder * System.CommandLine.Parsing.TryReplaceToken -> System.CommandLine.Builder.CommandLineBuilder
<Extension()>
Public Function UseTokenReplacer (builder As CommandLineBuilder, replaceToken As TryReplaceToken) As CommandLineBuilder

Parameters

builder
CommandLineBuilder

A command line builder.

replaceToken
TryReplaceToken

Replaces the specified token with any number of other tokens.

Returns

The same instance of CommandLineBuilder.

Applies to