diff --git a/src/PaketChain/Program.cs b/src/PaketChain/Program.cs index a266fe4..7f86b8d 100644 --- a/src/PaketChain/Program.cs +++ b/src/PaketChain/Program.cs @@ -1,9 +1,28 @@ using McMaster.Extensions.CommandLineUtils; +using System; +using System.Diagnostics; +using System.Threading.Tasks; namespace PaketChain { internal class Program { - public static int Main(string[] args) => CommandLineApplication.Execute(args); + public static async Task Main(string[] args) + { + try + { + return await CommandLineApplication.ExecuteAsync(args); + } + finally + { + if (Debugger.IsAttached) + { + Console.WriteLine(""); + Console.WriteLine("-----------------------------------------------------"); + Console.WriteLine("Press Enter To Close Debugger"); + Console.ReadLine(); + } + } + } } }