Class HelpMessage

Namespace
Pixie.Markup
Assembly
Pixie.dll

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

summary Block

The program summary.

usage Inline

The program usage syntax.

options IReadOnlyList<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

summary Block

The program summary.

usage Inline

The program usage syntax.

options IReadOnlyList<Option>

The supported command-line options.

printer OptionPrinter

The option printer to use.

Properties

Options

Gets the supported command-line options.

public IReadOnlyList<Option> Options { get; }

Property Value

IReadOnlyList<Option>

Printer

Gets the option printer used to render option names and arguments.

public OptionPrinter Printer { get; }

Property Value

OptionPrinter

Summary

Gets the program summary.

public Block Summary { get; }

Property Value

Block

Usage

Gets the program usage syntax.

public Inline Usage { get; }

Property Value

Inline

Methods

Lower()

Lowers this help message to simpler markup.

public override Block Lower()

Returns

Block

The lowered block markup.