Beispiel #1
0
 public Section(ArgumentSetHelpSectionType type, ArgumentSetHelpOptions options, ArgumentMetadataHelpOptions itemOptions, IEnumerable <ColoredMultistring> entries, string name = null)
 {
     SectionType        = type;
     Entries            = entries.ToList();
     Name               = name ?? itemOptions.HeaderTitle;
     BodyIndentWidth    = itemOptions.BlockIndent.GetValueOrDefault(options.SectionEntryBlockIndentWidth);
     HangingIndentWidth = itemOptions.HangingIndent.GetValueOrDefault(options.SectionEntryHangingIndentWidth);
 }
Beispiel #2
0
 public Section(ArgumentSetHelpSectionType type, ArgumentSetHelpOptions options, ArgumentMetadataHelpOptions itemOptions, ColoredString entry)
     : this(type, options, itemOptions, new[] { entry })
 {
 }
Beispiel #3
0
 public Section(ArgumentSetHelpSectionType type, ArgumentSetHelpOptions options, ArgumentMetadataHelpOptions itemOptions, IEnumerable <string> entries)
     : this(type, options, itemOptions, entries.Select(e => (ColoredString)e))
 {
 }