private static string GetOptionNameAndAliases(IOptionNameHelpAdorner adorner, BaseOption option) { var names = new [] { option.Name }.Concat(option.Aliases); return string.Join(", ", names.Select(n => adorner == null ? n : adorner.Adorn(n))); }
private static KeyValuePair<string, BaseOption> OptionCollectionEntry(BaseOption o) { return new KeyValuePair<string, BaseOption>(o.Name, o); }
public OptionAlias(BaseOption option, string alias) { _option = option; _alias = alias; }
private static IEnumerable<KeyValuePair<string, BaseOption>> OptionAliases(BaseOption o) { return o.Aliases.Select( a => new KeyValuePair<string, BaseOption>(a, o)); }