@@ -22,6 +22,43 @@ namespace ClangSharp;
22
22
23
23
public static class Program
24
24
{
25
+ private static readonly string [ ] s_additionalOptionAliases = [ "--additional" , "-a" ] ;
26
+ private static readonly string [ ] s_configOptionAliases = [ "--config" , "-c" ] ;
27
+ private static readonly string [ ] s_defineMacroOptionAliases = [ "--define-macro" , "-D" ] ;
28
+ private static readonly string [ ] s_excludeOptionAliases = [ "--exclude" , "-e" ] ;
29
+ private static readonly string [ ] s_fileOptionAliases = [ "--file" , "-f" ] ;
30
+ private static readonly string [ ] s_fileDirectionOptionAliases = [ "--file-directory" , "-F" ] ;
31
+ private static readonly string [ ] s_headerOptionAliases = [ "--headerFile" , "-h" ] ;
32
+ private static readonly string [ ] s_includeOptionAliases = [ "--include" , "-i" ] ;
33
+ private static readonly string [ ] s_includeDirectoryOptionAliases = [ "--include-directory" , "-I" ] ;
34
+ private static readonly string [ ] s_languageOptionAliases = [ "--language" , "-x" ] ;
35
+ private static readonly string [ ] s_libraryOptionAliases = [ "--libraryPath" , "-l" ] ;
36
+ private static readonly string [ ] s_methodClassNameOptionAliases = [ "--methodClassName" , "-m" ] ;
37
+ private static readonly string [ ] s_namespaceOptionAliases = [ "--namespace" , "-n" ] ;
38
+ private static readonly string [ ] s_nativeTypeNamesStripOptionAliases = [ "--nativeTypeNamesToStrip" ] ;
39
+ private static readonly string [ ] s_outputModeOptionAliases = [ "--output-mode" , "-om" ] ;
40
+ private static readonly string [ ] s_outputOptionAliases = [ "--output" , "-o" ] ;
41
+ private static readonly string [ ] s_prefixStripOptionAliases = [ "--prefixStrip" , "-p" ] ;
42
+ private static readonly string [ ] s_remapOptionAliases = [ "--remap" , "-r" ] ;
43
+ private static readonly string [ ] s_stdOptionAliases = [ "--std" , "-std" ] ;
44
+ private static readonly string [ ] s_testOutputOptionAliases = [ "--test-output" , "-to" ] ;
45
+ private static readonly string [ ] s_versionOptionAliases = [ "--version" , "-v" ] ;
46
+ private static readonly string [ ] s_traverseOptionAliases = [ "--traverse" , "-t" ] ;
47
+ private static readonly string [ ] s_withAccessSpecifierOptionAliases = [ "--with-access-specifier" , "-was" ] ;
48
+ private static readonly string [ ] s_withAttributeOptionAliases = [ "--with-attribute" , "-wa" ] ;
49
+ private static readonly string [ ] s_withCallConvOptionAliases = [ "--with-callconv" , "-wcc" ] ;
50
+ private static readonly string [ ] s_withClassOptionAliases = [ "--with-class" , "-wc" ] ;
51
+ private static readonly string [ ] s_withGuidOptionAliases = [ "--with-guid" , "-wg" ] ;
52
+ private static readonly string [ ] s_withLibraryPathOptionAliases = [ "--with-librarypath" , "-wlb" ] ;
53
+ private static readonly string [ ] s_withManualImportOptionAliases = [ "--with-manual-import" , "-wmi" ] ;
54
+ private static readonly string [ ] s_withNamespaceOptionAliases = [ "--with-namespace" , "-wn" ] ;
55
+ private static readonly string [ ] s_withSetLastErrorOptionAliases = [ "--with-setlasterror" , "-wsle" ] ;
56
+ private static readonly string [ ] s_withSuppressGCTransitionOptionAliases = [ "--with-suppressgctransition" , "-wsgct" ] ;
57
+ private static readonly string [ ] s_withTransparentStructOptionAliases = [ "--with-transparent-struct" , "-wts" ] ;
58
+ private static readonly string [ ] s_withTypeOptionAliases = [ "--with-type" , "-wt" ] ;
59
+ private static readonly string [ ] s_withUsingOptionAliases = [ "--with-using" , "-wu" ] ;
60
+ private static readonly string [ ] s_withPackingOptionAliases = [ "--with-packing" , "-wp" ] ;
61
+
25
62
private static readonly Option < string [ ] > s_additionalOption = GetAdditionalOption ( ) ;
26
63
private static readonly Option < string [ ] > s_configOption = GetConfigOption ( ) ;
27
64
private static readonly Option < string [ ] > s_defineMacros = GetDefineMacroOption ( ) ;
@@ -130,43 +167,6 @@ public static class Program
130
167
new TwoColumnHelpRow ( "log-visited-files" , "A list of the visited files should be generated. This can help identify traversal issues." ) ,
131
168
] ;
132
169
133
- private static readonly string [ ] s_additionalOptionAliases = [ "--additional" , "-a" ] ;
134
- private static readonly string [ ] s_configOptionAliases = [ "--config" , "-c" ] ;
135
- private static readonly string [ ] s_defineMacroOptionAliases = [ "--define-macro" , "-D" ] ;
136
- private static readonly string [ ] s_excludeOptionAliases = [ "--exclude" , "-e" ] ;
137
- private static readonly string [ ] s_fileOptionAliases = [ "--file" , "-f" ] ;
138
- private static readonly string [ ] s_fileDirectionOptionAliases = [ "--file-directory" , "-F" ] ;
139
- private static readonly string [ ] s_headerOptionAliases = [ "--headerFile" , "-h" ] ;
140
- private static readonly string [ ] s_includeOptionAliases = [ "--include" , "-i" ] ;
141
- private static readonly string [ ] s_includeDirectoryOptionAliases = [ "--include-directory" , "-I" ] ;
142
- private static readonly string [ ] s_languageOptionAliases = [ "--language" , "-x" ] ;
143
- private static readonly string [ ] s_libraryOptionAliases = [ "--libraryPath" , "-l" ] ;
144
- private static readonly string [ ] s_methodClassNameOptionAliases = [ "--methodClassName" , "-m" ] ;
145
- private static readonly string [ ] s_namespaceOptionAliases = [ "--namespace" , "-n" ] ;
146
- private static readonly string [ ] s_nativeTypeNamesStripOptionAliases = [ "--nativeTypeNamesToStrip" ] ;
147
- private static readonly string [ ] s_outputModeOptionAliases = [ "--output-mode" , "-om" ] ;
148
- private static readonly string [ ] s_outputOptionAliases = [ "--output" , "-o" ] ;
149
- private static readonly string [ ] s_prefixStripOptionAliases = [ "--prefixStrip" , "-p" ] ;
150
- private static readonly string [ ] s_remapOptionAliases = [ "--remap" , "-r" ] ;
151
- private static readonly string [ ] s_stdOptionAliases = [ "--std" , "-std" ] ;
152
- private static readonly string [ ] s_testOutputOptionAliases = [ "--test-output" , "-to" ] ;
153
- private static readonly string [ ] s_versionOptionAliases = [ "--version" , "-v" ] ;
154
- private static readonly string [ ] s_traverseOptionAliases = [ "--traverse" , "-t" ] ;
155
- private static readonly string [ ] s_withAccessSpecifierOptionAliases = [ "--with-access-specifier" , "-was" ] ;
156
- private static readonly string [ ] s_withAttributeOptionAliases = [ "--with-attribute" , "-wa" ] ;
157
- private static readonly string [ ] s_withCallConvOptionAliases = [ "--with-callconv" , "-wcc" ] ;
158
- private static readonly string [ ] s_withClassOptionAliases = [ "--with-class" , "-wc" ] ;
159
- private static readonly string [ ] s_withGuidOptionAliases = [ "--with-guid" , "-wg" ] ;
160
- private static readonly string [ ] s_withLibraryPathOptionAliases = [ "--with-librarypath" , "-wlb" ] ;
161
- private static readonly string [ ] s_withManualImportOptionAliases = [ "--with-manual-import" , "-wmi" ] ;
162
- private static readonly string [ ] s_withNamespaceOptionAliases = [ "--with-namespace" , "-wn" ] ;
163
- private static readonly string [ ] s_withSetLastErrorOptionAliases = [ "--with-setlasterror" , "-wsle" ] ;
164
- private static readonly string [ ] s_withSuppressGCTransitionOptionAliases = [ "--with-suppressgctransition" , "-wsgct" ] ;
165
- private static readonly string [ ] s_withTransparentStructOptionAliases = [ "--with-transparent-struct" , "-wts" ] ;
166
- private static readonly string [ ] s_withTypeOptionAliases = [ "--with-type" , "-wt" ] ;
167
- private static readonly string [ ] s_withUsingOptionAliases = [ "--with-using" , "-wu" ] ;
168
- private static readonly string [ ] s_withPackingOptionAliases = [ "--with-packing" , "-wp" ] ;
169
-
170
170
public static IEnumerable < HelpSectionDelegate > GetExtendedHelp ( HelpContext context )
171
171
{
172
172
foreach ( var sectionDelegate in HelpBuilder . Default . GetLayout ( ) )
0 commit comments