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-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
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|