using Mono.Options; namespace ModpackUpdater; internal class Options { private readonly List additionals = []; public IReadOnlyList Additionals => additionals; public bool Silent { get; private set; } public bool NoUi { get; private set; } public string ProfileFolder { get; private set; } public string ModpackConfig { get; private set; } public Options(string[] args) { var options = new OptionSet { { "s|silent", "Do not output anything.", s => Silent = s != null }, { "n|noui", "Install without user interface.", n => NoUi = n != null }, { "p|profile=", "Sets the minecraft profile folder.", p => ProfileFolder = p }, { "c|config=", "Sets the minecraft profile folder.", c => ModpackConfig = c }, }; var additional = options.Parse(args); } }