Compartilhar via


CommandLineBuilderExtensions.UseHelpBuilder<TBuilder> Método

Definição

Especifica um HelpBuilder a ser usado para formatar a saída de ajuda quando a ajuda é solicitada.

public:
generic <typename TBuilder>
 where TBuilder : System::CommandLine::Builder::CommandLineBuilder[System::Runtime::CompilerServices::Extension]
 static TBuilder UseHelpBuilder(TBuilder builder, Func<System::CommandLine::Binding::BindingContext ^, System::CommandLine::Help::HelpBuilder ^> ^ getHelpBuilder);
public static TBuilder UseHelpBuilder<TBuilder> (this TBuilder builder, Func<System.CommandLine.Binding.BindingContext,System.CommandLine.Help.HelpBuilder> getHelpBuilder) where TBuilder : System.CommandLine.Builder.CommandLineBuilder;
static member UseHelpBuilder : 'Builder * Func<System.CommandLine.Binding.BindingContext, System.CommandLine.Help.HelpBuilder> -> 'Builder (requires 'Builder :> System.CommandLine.Builder.CommandLineBuilder)
<Extension()>
Public Function UseHelpBuilder(Of TBuilder As CommandLineBuilder) (builder As TBuilder, getHelpBuilder As Func(Of BindingContext, HelpBuilder)) As TBuilder

Parâmetros de tipo

TBuilder

Parâmetros

builder
TBuilder

Um construtor de linha de comando.

getHelpBuilder
Func<BindingContext,HelpBuilder>

Um delegado que retorna uma instância de HelpBuilder

Retornos

TBuilder

A mesma instância de CommandLineBuilder.

Aplica-se a