28 lines
886 B
C#
28 lines
886 B
C#
using Mono.Options;
|
|
|
|
namespace ModpackUpdater;
|
|
|
|
internal class Options
|
|
{
|
|
private readonly List<string> additionals = [];
|
|
|
|
public IReadOnlyList<string> 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);
|
|
}
|
|
}
|