Class OptionSetSummary
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
optionsIReadOnlyList<Option>The options to summarize.
printerOptionPrinterThe option printer to use.
Properties
Options
Gets the options being summarized.
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
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
optionsIReadOnlyList<Option>The options to sort and group.
Returns
- SortedDictionary<string, IReadOnlyList<Option>>
The options grouped by category.