diff --git a/ModpackUpdater.Apps.Client/Program.cs b/ModpackUpdater.Apps.Client/Program.cs index aead8be..3075dd8 100644 --- a/ModpackUpdater.Apps.Client/Program.cs +++ b/ModpackUpdater.Apps.Client/Program.cs @@ -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) diff --git a/ModpackUpdater.Apps.Manager/ModpackUpdater.Apps.Manager.csproj b/ModpackUpdater.Apps.Manager/ModpackUpdater.Apps.Manager.csproj index f39cf98..17be332 100644 --- a/ModpackUpdater.Apps.Manager/ModpackUpdater.Apps.Manager.csproj +++ b/ModpackUpdater.Apps.Manager/ModpackUpdater.Apps.Manager.csproj @@ -143,10 +143,4 @@ - - - ..\..\..\.nuget\packages\pilz\2.6.1\lib\net8.0\Pilz.dll - - - \ No newline at end of file