Commit refactoring
This commit is contained in:
parent
f735bce4e1
commit
d33d11123d
51 changed files with 348 additions and 18 deletions
29
ForgeCore.cs
Normal file
29
ForgeCore.cs
Normal 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;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue