Skip to content

Commit 3157e68

Browse files
committed
wip
1 parent 33d1fb0 commit 3157e68

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/System.CommandLine/Invocation/CommandHandler.cs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
33

44
using System.CommandLine.Binding;
5+
using System.Diagnostics.CodeAnalysis;
56
using System.Reflection;
67
using System.Threading.Tasks;
78

@@ -139,6 +140,7 @@ public static ICommandHandler Create<T1, T2, T3, T4, T5, T6, T7>(
139140
Func<T1, T2, T3, T4, T5, T6, T7, Task<int>> action) =>
140141
HandlerDescriptor.FromDelegate(action).GetCommandHandler();
141142

143+
142144
public static ICommandHandler Create<T1, T2, T3>(
143145
IValueDescriptor<T1> symbol1,
144146
IValueDescriptor<T2> symbol2,
@@ -148,9 +150,9 @@ public static ICommandHandler Create<T1, T2, T3>(
148150
return new AnonymousCommandHandler(async context =>
149151
{
150152
await handle(
151-
context.ParseResult.ValueFor(symbol1),
152-
context.ParseResult.ValueFor(symbol2),
153-
context.ParseResult.ValueFor(symbol3));
153+
context.ParseResult.ValueFor(symbol1)!,
154+
context.ParseResult.ValueFor(symbol2)!,
155+
context.ParseResult.ValueFor(symbol3)!);
154156
});
155157
}
156158

0 commit comments

Comments
 (0)