using Mono.Options; namespace ModpackUpdater; internal class Options { private readonly List additionals = []; public IReadOnlyList Additionals => additionals; public bool InstallWithoutUi { get; private set; } public string ProfileFolder { get; private set; } public string ModpackConfig { get; private set; } public Options(string[] args) { var options = new OptionSet { { "i", "Install without user interface.", n => InstallWithoutUi = 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); } }