From 604d448f5a46b035befc4dc6ae90409561423701 Mon Sep 17 00:00:00 2001 From: myd7349 Date: Tue, 16 Jul 2024 18:01:06 +0800 Subject: [PATCH] Eliminate the ambiguity of "-h" option Currently, the "-h" option serves as an alias for both "--headerFile" and "--help" long options, causing ambiguity. --- sources/ClangSharpPInvokeGenerator/Program.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sources/ClangSharpPInvokeGenerator/Program.cs b/sources/ClangSharpPInvokeGenerator/Program.cs index 69eb17ee..322ef1e4 100644 --- a/sources/ClangSharpPInvokeGenerator/Program.cs +++ b/sources/ClangSharpPInvokeGenerator/Program.cs @@ -28,7 +28,7 @@ public static class Program private static readonly string[] s_excludeOptionAliases = ["--exclude", "-e"]; private static readonly string[] s_fileOptionAliases = ["--file", "-f"]; private static readonly string[] s_fileDirectionOptionAliases = ["--file-directory", "-F"]; - private static readonly string[] s_headerOptionAliases = ["--headerFile", "-h"]; + private static readonly string[] s_headerOptionAliases = ["--headerFile", "-hf"]; private static readonly string[] s_includeOptionAliases = ["--include", "-i"]; private static readonly string[] s_includeDirectoryOptionAliases = ["--include-directory", "-I"]; private static readonly string[] s_languageOptionAliases = ["--language", "-x"];