2024-08-10 21:54:03 +00:00
|
|
|
using CommandLine;
|
2022-02-12 19:33:03 +00:00
|
|
|
|
2024-08-10 21:54:03 +00:00
|
|
|
using MultiversalDiplomacy.CommandLine;
|
|
|
|
|
|
|
|
namespace MultiversalDiplomacy;
|
|
|
|
|
|
|
|
internal class Program
|
2022-02-12 19:33:03 +00:00
|
|
|
{
|
2024-08-10 21:54:03 +00:00
|
|
|
static void Main(string[] args)
|
2022-02-12 19:33:03 +00:00
|
|
|
{
|
2024-08-10 21:54:03 +00:00
|
|
|
var parser = Parser.Default;
|
2024-08-13 15:20:42 +00:00
|
|
|
var parseResult = parser.ParseArguments(
|
|
|
|
args,
|
|
|
|
typeof(AdjudicateOptions),
|
|
|
|
typeof(ImageOptions),
|
|
|
|
typeof(ReplOptions));
|
2024-08-10 21:54:03 +00:00
|
|
|
|
|
|
|
parseResult
|
2024-08-13 15:20:42 +00:00
|
|
|
.WithParsed<AdjudicateOptions>(AdjudicateOptions.Execute)
|
|
|
|
.WithParsed<ImageOptions>(ImageOptions.Execute)
|
|
|
|
.WithParsed<ReplOptions>(ReplOptions.Execute);
|
2022-02-12 19:33:03 +00:00
|
|
|
}
|
2024-08-13 15:20:42 +00:00
|
|
|
}
|