mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-01-09 12:25:32 +00:00
Added help option and moved required argument to the top.
This commit is contained in:
parent
7d031a81af
commit
3cb9c5f833
|
@ -1,9 +1,18 @@
|
||||||
using CommandLine;
|
using CommandLine;
|
||||||
|
using CommandLine.Text;
|
||||||
|
|
||||||
namespace OpenTK.Rewrite
|
namespace OpenTK.Rewrite
|
||||||
{
|
{
|
||||||
public class Options
|
public class Options
|
||||||
{
|
{
|
||||||
|
[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; }
|
||||||
|
|
||||||
[Option('d', "debug", DefaultValue = false,
|
[Option('d', "debug", DefaultValue = false,
|
||||||
HelpText = "Enable calls to GL.GetError(), wrapped around each native call.")]
|
HelpText = "Enable calls to GL.GetError(), wrapped around each native call.")]
|
||||||
public bool EnableDebugCalls { get; set; }
|
public bool EnableDebugCalls { get; set; }
|
||||||
|
@ -12,12 +21,10 @@ namespace OpenTK.Rewrite
|
||||||
HelpText = "Force native calls to use DllImport instead of GetProcAddress.")]
|
HelpText = "Force native calls to use DllImport instead of GetProcAddress.")]
|
||||||
public bool UseDLLImport { get; set; }
|
public bool UseDLLImport { get; set; }
|
||||||
|
|
||||||
[Option('i', "assembly", Required = true,
|
[HelpOption]
|
||||||
HelpText = "The path to the target assembly that should be rewritten.")]
|
public string GetUsage()
|
||||||
public string TargetAssembly { get; set; }
|
{
|
||||||
|
return HelpText.AutoBuild(this, current => HelpText.DefaultParsingErrorsHandler(this, current));
|
||||||
[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; }
|
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in a new issue