HelpBuilder.CustomizeSymbol 方法

定义

指定特定符号的自定义帮助详细信息。

public void CustomizeSymbol (System.CommandLine.Symbol symbol, Func<System.CommandLine.Help.HelpContext,string?>? firstColumnText = default, Func<System.CommandLine.Help.HelpContext,string?>? secondColumnText = default, Func<System.CommandLine.Help.HelpContext,string?>? defaultValue = default);
member this.CustomizeSymbol : System.CommandLine.Symbol * Func<System.CommandLine.Help.HelpContext, string> * Func<System.CommandLine.Help.HelpContext, string> * Func<System.CommandLine.Help.HelpContext, string> -> unit
Public Sub CustomizeSymbol (symbol As Symbol, Optional firstColumnText As Func(Of HelpContext, String) = Nothing, Optional secondColumnText As Func(Of HelpContext, String) = Nothing, Optional defaultValue As Func(Of HelpContext, String) = Nothing)

参数

symbol
Symbol

要为其指定自定义帮助详细信息的符号。

firstColumnText
Func<HelpContext,String>

显示第一个帮助列的委托 (通常) 名称和使用情况信息。

secondColumnText
Func<HelpContext,String>

显示第二个帮助列的委托 (通常说明) 。

defaultValue
Func<HelpContext,String>

一个委托,用于显示符号的默认值。

适用于