HelpBuilder is weirdly designed, i.e. it's hard to derive from that class due to static methods. CliHelpBuilder solves this problem by providing overridable methods, and it also adds color support.
public class CliHelpBuilder : HelpBuilder
CliHelpBuilder | Initializes a new instance of the CliHelpBuilder class. |
GetLayout | Gets the default sections to be written for command line help. |
GetTwoColumnRow | Gets a help item for the specified symbol. |
Write |
Writes help output for the specified command.
(Overrides HelpBuilder.Write(HelpContext)) |
WriteAdditionalArgumentsSection | Writes a help section describing a command's additional arguments, typically shown only when TreatUnmatchedTokensAsErrors is set to . |
WriteColumns | Writes the specified help rows, aligning output in columns. |
WriteCommandArgumentsSection |
Writes a help section describing a command's arguments.
Similar to:
console
|
WriteCommandOptionsSection |
Writes a help section describing a command's options.
Similar to:
console
|
WriteCommandUsageSection |
Writes a help section describing a command's usage.
Similar to:
console
|
WriteSubcommandsSection |
Writes a help section describing a command's subcommands.
Similar to:
console
|
WriteSynopsisSection |
Writes a help section describing a command's synopsis.
Similar to:
console
|