Bewerken

Delen via


HelpBuilder Class

Definition

Formats output to be shown to users to describe how to use a command line tool.

public ref class HelpBuilder
public class HelpBuilder
type HelpBuilder = class
Public Class HelpBuilder
Inheritance
HelpBuilder

Constructors

HelpBuilder(LocalizationResources, Int32)

Properties

LocalizationResources

Provides localizable strings for help and error messages.

MaxWidth

The maximum width for which to format help output.

Methods

CustomizeLayout(Func<HelpContext,IEnumerable<HelpSectionDelegate>>)

Customizes the help sections that will be displayed.

CustomizeSymbol(Symbol, Func<HelpContext,String>, Func<HelpContext,String>, Func<HelpContext,String>)

Specifies custom help details for a specific symbol.

GetTwoColumnRow(Symbol, HelpContext)

Gets a help item for the specified symbol.

Write(HelpContext)

Writes help output for the specified command.

WriteColumns(IReadOnlyList<TwoColumnHelpRow>, HelpContext)

Writes the specified help rows, aligning output in columns.

Extension Methods

CustomizeSymbol(HelpBuilder, Symbol, String, String, String)

Specifies custom help details for a specific symbol.

Write(HelpBuilder, Command, TextWriter)

Writes help output for the specified command.

Applies to