add installation without gui & pass arguments to gui

This commit is contained in:
2024-06-20 06:12:28 +02:00
parent f3b2d07117
commit 00de4d8708
4 changed files with 38 additions and 12 deletions

View File

@@ -7,7 +7,8 @@ internal class Options
private readonly List<string> additionals = [];
public IReadOnlyList<string> Additionals => additionals;
public bool InstallWithoutUi { get; private set; }
public bool Silent { get; private set; }
public bool NoUi { get; private set; }
public string ProfileFolder { get; private set; }
public string ModpackConfig { get; private set; }
@@ -15,7 +16,8 @@ internal class Options
{
var options = new OptionSet
{
{ "i", "Install without user interface.", n => InstallWithoutUi = n != null },
{ "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 },
};