tidstagning/Program.cs

33 lines
747 B
C#
Raw Permalink Normal View History

2022-11-03 19:35:45 +00:00
using CommandLine;
2022-06-17 19:09:10 +00:00
using System.Windows.Forms;
2022-11-03 19:35:45 +00:00
using System;
2022-11-03 20:58:32 +00:00
[assembly: CLSCompliant(false)]
2022-06-17 19:09:10 +00:00
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-19 18:08:22 +00:00
Parser.Default.ParseArguments<Options>(args)
.WithParsed<Options>(o =>
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new MainUI(o.Verbose));
});
2022-06-17 21:23:01 +00:00
2022-06-17 19:09:10 +00:00
}
}
}