diff --git a/Program.cs b/Program.cs index eef4b32..5aef9af 100644 --- a/Program.cs +++ b/Program.cs @@ -1,5 +1,5 @@ using System; -using System.CommandLine; +using CommandLine; using System.Collections.Generic; using System.Windows.Forms; @@ -8,12 +8,23 @@ namespace Tidstagning class Program { + public class Options + { + [Option('c', "config", Required = false, HelpText = "Enable configuration menu.")] + public bool Verbose { get; set; } + } [STAThread] static void Main(string[] args) { + Parser.Default.ParseArguments(args) + .WithParsed(o => + { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); - Application.Run(new MainUI()); + Application.Run(new MainUI(o.Verbose)); + }); + + } diff --git a/Tidstagning.csproj b/Tidstagning.csproj index e059139..689edea 100644 --- a/Tidstagning.csproj +++ b/Tidstagning.csproj @@ -9,6 +9,7 @@ +