Skip to content

Commit 236f7c3

Browse files
Ensure that ClangSharpPInvokeGenerator works with the System.CommandLine breaking changes (#204)
1 parent 75feb77 commit 236f7c3

File tree

1 file changed

+24
-24
lines changed

1 file changed

+24
-24
lines changed

sources/ClangSharpPInvokeGenerator/Program.cs

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -54,30 +54,30 @@ public static async Task<int> Main(params string[] args)
5454

5555
public static int Run(InvocationContext context)
5656
{
57-
var additionalArgs = context.ParseResult.ValueForOption<string[]>("additional");
58-
var configSwitches = context.ParseResult.ValueForOption<string[]>("config");
59-
var defineMacros = context.ParseResult.ValueForOption<string[]>("define-macro");
60-
var excludedNames = context.ParseResult.ValueForOption<string[]>("exclude");
61-
var files = context.ParseResult.ValueForOption<string[]>("file");
62-
var fileDirectory = context.ParseResult.ValueForOption<string>("file-directory");
63-
var headerFile = context.ParseResult.ValueForOption<string>("headerFile");
64-
var includeDirectories = context.ParseResult.ValueForOption<string[]>("include-directory");
65-
var language = context.ParseResult.ValueForOption<string>("language");
66-
var libraryPath = context.ParseResult.ValueForOption<string>("libraryPath");
67-
var methodClassName = context.ParseResult.ValueForOption<string>("methodClassName");
68-
var methodPrefixToStrip = context.ParseResult.ValueForOption<string>("prefixStrip");
69-
var namespaceName = context.ParseResult.ValueForOption<string>("namespace");
70-
var outputLocation = context.ParseResult.ValueForOption<string>("output");
71-
var remappedNameValuePairs = context.ParseResult.ValueForOption<string[]>("remap");
72-
var std = context.ParseResult.ValueForOption<string>("std");
73-
var testOutputLocation = context.ParseResult.ValueForOption<string>("test-output");
74-
var traversalNames = context.ParseResult.ValueForOption<string[]>("traverse");
75-
var withAttributeNameValuePairs = context.ParseResult.ValueForOption<string[]>("with-attribute");
76-
var withCallConvNameValuePairs = context.ParseResult.ValueForOption<string[]>("with-callconv");
77-
var withLibraryPathNameValuePairs = context.ParseResult.ValueForOption<string[]>("with-librarypath");
78-
var withSetLastErrors = context.ParseResult.ValueForOption<string[]>("with-setlasterror");
79-
var withTypeNameValuePairs = context.ParseResult.ValueForOption<string[]>("with-type");
80-
var withUsingNameValuePairs = context.ParseResult.ValueForOption<string[]>("with-using");
57+
var additionalArgs = context.ParseResult.ValueForOption<string[]>("--additional");
58+
var configSwitches = context.ParseResult.ValueForOption<string[]>("--config");
59+
var defineMacros = context.ParseResult.ValueForOption<string[]>("--define-macro");
60+
var excludedNames = context.ParseResult.ValueForOption<string[]>("--exclude");
61+
var files = context.ParseResult.ValueForOption<string[]>("--file");
62+
var fileDirectory = context.ParseResult.ValueForOption<string>("--file-directory");
63+
var headerFile = context.ParseResult.ValueForOption<string>("--headerFile");
64+
var includeDirectories = context.ParseResult.ValueForOption<string[]>("--include-directory");
65+
var language = context.ParseResult.ValueForOption<string>("--language");
66+
var libraryPath = context.ParseResult.ValueForOption<string>("--libraryPath");
67+
var methodClassName = context.ParseResult.ValueForOption<string>("--methodClassName");
68+
var methodPrefixToStrip = context.ParseResult.ValueForOption<string>("--prefixStrip");
69+
var namespaceName = context.ParseResult.ValueForOption<string>("--namespace");
70+
var outputLocation = context.ParseResult.ValueForOption<string>("--output");
71+
var remappedNameValuePairs = context.ParseResult.ValueForOption<string[]>("--remap");
72+
var std = context.ParseResult.ValueForOption<string>("--std");
73+
var testOutputLocation = context.ParseResult.ValueForOption<string>("--test-output");
74+
var traversalNames = context.ParseResult.ValueForOption<string[]>("--traverse");
75+
var withAttributeNameValuePairs = context.ParseResult.ValueForOption<string[]>("--with-attribute");
76+
var withCallConvNameValuePairs = context.ParseResult.ValueForOption<string[]>("--with-callconv");
77+
var withLibraryPathNameValuePairs = context.ParseResult.ValueForOption<string[]>("--with-librarypath");
78+
var withSetLastErrors = context.ParseResult.ValueForOption<string[]>("--with-setlasterror");
79+
var withTypeNameValuePairs = context.ParseResult.ValueForOption<string[]>("--with-type");
80+
var withUsingNameValuePairs = context.ParseResult.ValueForOption<string[]>("--with-using");
8181

8282
var errorList = new List<string>();
8383

0 commit comments

Comments
 (0)