-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
When running in debugger, always force a enter to close debugger
- Loading branch information
1 parent
68c8cff
commit a884364
Showing
1 changed file
with
20 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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<RunnerArgs>(args); | ||
public static async Task<int> Main(string[] args) | ||
{ | ||
try | ||
{ | ||
return await CommandLineApplication.ExecuteAsync<RunnerArgs>(args); | ||
} | ||
finally | ||
{ | ||
if (Debugger.IsAttached) | ||
{ | ||
Console.WriteLine(""); | ||
Console.WriteLine("-----------------------------------------------------"); | ||
Console.WriteLine("Press Enter To Close Debugger"); | ||
Console.ReadLine(); | ||
} | ||
} | ||
} | ||
} | ||
} |