cli: info
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
using Castle.Core.Logging;
|
||||
using System.Reflection;
|
||||
using Castle.Core.Logging;
|
||||
using ModpackUpdater.Manager;
|
||||
using Pilz.Extensions;
|
||||
|
||||
namespace ModpackUpdater.Apps.Client;
|
||||
|
||||
@@ -15,9 +17,22 @@ public static class Program
|
||||
{
|
||||
Options = new Options(args);
|
||||
if (Options.Help)
|
||||
{
|
||||
DrawInfo();
|
||||
Options.DrawHelp();
|
||||
else
|
||||
InstallWithoutGui(Options.UpdateOptions, Options.Silent);
|
||||
return;
|
||||
}
|
||||
|
||||
if (!Options.Silent)
|
||||
DrawInfo();
|
||||
InstallWithoutGui(Options.UpdateOptions, Options.Silent);
|
||||
}
|
||||
|
||||
private static void DrawInfo()
|
||||
{
|
||||
Console.WriteLine("Minecraft Modpack Updater CLI");
|
||||
Console.WriteLine("Version " + Assembly.GetExecutingAssembly().GetAppVersion().ToShortString());
|
||||
Console.WriteLine("------------------------------");
|
||||
}
|
||||
|
||||
private static void InstallWithoutGui(UpdateCheckOptionsAdv updateOptions, bool silent)
|
||||
|
||||
@@ -143,10 +143,4 @@
|
||||
</EmbeddedResource>
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Reference Include="Pilz">
|
||||
<HintPath>..\..\..\.nuget\packages\pilz\2.6.1\lib\net8.0\Pilz.dll</HintPath>
|
||||
</Reference>
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
Reference in New Issue
Block a user