Commit refactoring

This commit is contained in:
zontreck 2024-12-17 12:10:01 -07:00
parent f735bce4e1
commit d33d11123d
51 changed files with 348 additions and 18 deletions

29
ForgeCore.cs Normal file
View file

@ -0,0 +1,29 @@
using System;
using System.Linq;
using ForgeCoreAPI;
using LibAC.Arguments;
namespace ForgeCore;
public class ForgeCore
{
public static int main(string[] args)
{
PluginSystem.InitializeSystem();
Arguments arguments = ArgumentParser.Parse(args);
if (arguments.HasArg("help") || arguments.Count == 0)
{
// Print the help message for the default CLI Args
ArgumentBuilder builder = new ArgumentBuilder();
builder.withVersionArgument().withHelpArgument();
Arguments defaults = builder.Build();
Console.WriteLine(ArgumentHelpers.GenerateHelpMessage(defaults.GetAllArguments().ToList(), "ForgeCore"));
}
return 0;
}
}