tidstagning/Program.cs

33 lines
744 B
C#
Raw Normal View History

2022-06-17 19:09:10 +00:00
using System;
2022-06-17 21:23:01 +00:00
using CommandLine;
2022-06-17 19:09:10 +00:00
using System.Collections.Generic;
using System.Windows.Forms;
namespace Tidstagning
{
class Program
{
2022-06-17 21:23:01 +00:00
public class Options
{
[Option('c', "config", Required = false, HelpText = "Enable configuration menu.")]
public bool Verbose { get; set; }
}
2022-06-17 19:09:10 +00:00
[STAThread]
static void Main(string[] args)
{
2022-06-17 21:23:01 +00:00
Parser.Default.ParseArguments<Options>(args)
.WithParsed<Options>(o =>
{
2022-06-17 19:09:10 +00:00
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
2022-06-17 21:23:01 +00:00
Application.Run(new MainUI(o.Verbose));
});
2022-06-17 19:09:10 +00:00
}
}
}