namespace slskd { using Soulseek.Diagnostics; using System; using System.Collections.Generic; using System.Diagnostics; public record Option(char ShortName, string LongName, string EnvironmentVariable, string Key, Type Type, object Default = null, string Description = null) { public CommandLineArgument ToCommandLineArgument() => new (ShortName, LongName, Type, Key, Description); public EnvironmentVariable ToEnvironmentVariable() => new (EnvironmentVariable, Type, Key, Description); public DefaultValue ToDefaultValue() => new (Key, Type, Default); } public class Options { public static IEnumerable