Class OptionSetSummary

Namespace
Pixie.Markup
Assembly
Pixie.dll

Summarizes the forms of a list of options.

public sealed class OptionSetSummary : Block
Inheritance
OptionSetSummary
Inherited Members

Constructors

OptionSetSummary(IReadOnlyList<Option>, OptionPrinter)

Creates summary markup for the forms of a set of command-line options grouped by category.

public OptionSetSummary(IReadOnlyList<Option> options, OptionPrinter printer)

Parameters

options IReadOnlyList<Option>

The options to summarize.

printer OptionPrinter

The option printer to use.

Properties

Options

Gets the options being summarized.

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

Methods

Lower()

Lowers this option set summary block to simpler markup.

public override Block Lower()

Returns

Block

The lowered block markup.

SortAndGroupByCategory(IReadOnlyList<Option>)

Sorts options by their first form and groups them by documentation category.

public static SortedDictionary<string, IReadOnlyList<Option>> SortAndGroupByCategory(IReadOnlyList<Option> options)

Parameters

options IReadOnlyList<Option>

The options to sort and group.

Returns

SortedDictionary<string, IReadOnlyList<Option>>

The options grouped by category.