Class HelpMessage
A block that prints a short manual for a program.
public sealed class HelpMessage : Block
- Inheritance
-
HelpMessage
- Inherited Members
Constructors
HelpMessage(Block, Inline, IReadOnlyList<Option>)
Creates a help message that uses the default GNU-style option printer.
public HelpMessage(Block summary, Inline usage, IReadOnlyList<Option> options)
Parameters
summaryBlockThe program summary.
usageInlineThe program usage syntax.
optionsIReadOnlyList<Option>The supported command-line options.
HelpMessage(Block, Inline, IReadOnlyList<Option>, OptionPrinter)
Creates a help message.
public HelpMessage(Block summary, Inline usage, IReadOnlyList<Option> options, OptionPrinter printer)
Parameters
summaryBlockThe program summary.
usageInlineThe program usage syntax.
optionsIReadOnlyList<Option>The supported command-line options.
printerOptionPrinterThe option printer to use.
Properties
Options
Gets the supported command-line options.
public IReadOnlyList<Option> Options { get; }
Property Value
Printer
Gets the option printer used to render option names and arguments.
public OptionPrinter Printer { get; }
Property Value
Summary
Gets the program summary.
public Block Summary { get; }
Property Value
Usage
Gets the program usage syntax.
public Inline Usage { get; }
Property Value
Methods
Lower()
Lowers this help message to simpler markup.
public override Block Lower()
Returns
- Block
The lowered block markup.