Lectureplan/UWScraper/Program.cs
Robin Weichselbraun 55989e19e5 Ready for 1 release
2024-10-20 15:45:16 +02:00

29 lines
590 B
C#

using Spectre.Console.Cli;
using UWScraper;
internal class Program
{
private static void Main(string[] args)
{
AppDomain.CurrentDomain.ProcessExit += (s, e) =>
{
Scraper.QuitDriver();
};
AppDomain.CurrentDomain.UnhandledException += (s, e) =>
{
Scraper.QuitDriver();
};
var app = new CommandApp<ScrapeCommand>();
app.Configure(config =>
{
#if DEBUG
config.PropagateExceptions();
config.ValidateExamples();
#endif
});
app.Run(args);
}
}