From 7d031a81af6defd8f1118652286de2818fde1a03 Mon Sep 17 00:00:00 2001 From: Jarl Gullberg Date: Mon, 26 Jun 2017 20:53:12 +0200 Subject: [PATCH] Added option class. --- src/Generator.Rewrite/Options.cs | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 src/Generator.Rewrite/Options.cs diff --git a/src/Generator.Rewrite/Options.cs b/src/Generator.Rewrite/Options.cs new file mode 100644 index 00000000..2519e0cb --- /dev/null +++ b/src/Generator.Rewrite/Options.cs @@ -0,0 +1,23 @@ +using CommandLine; + +namespace OpenTK.Rewrite +{ + public class Options + { + [Option('d', "debug", DefaultValue = false, + HelpText = "Enable calls to GL.GetError(), wrapped around each native call.")] + public bool EnableDebugCalls { get; set; } + + [Option("dllimport", DefaultValue = false, + HelpText = "Force native calls to use DllImport instead of GetProcAddress.")] + public bool UseDLLImport { get; set; } + + [Option('i', "assembly", Required = true, + HelpText = "The path to the target assembly that should be rewritten.")] + public string TargetAssembly { get; set; } + + [Option('k', "signing-key", + HelpText = "The path to the strong name key which should be used to sign or resign the assembly.")] + public string StrongNameKey { get; set; } + } +} \ No newline at end of file