add installation without gui & pass arguments to gui
This commit is contained in:
@@ -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 },
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user