Skip to content

Commit a665e15

Browse files
committed
Fixing compilation tests
1 parent 1c71fd5 commit a665e15

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/System.CommandLine.Tests/TestApps/NativeAOT/Program.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ private static int Main(string[] args)
2222

2323
void Run(InvocationContext context)
2424
{
25-
context.Console.WriteLine($"Bool option: {context.ParseResult.GetValueForOption(boolOption)}");
26-
context.Console.WriteLine($"String option: {context.ParseResult.GetValueForOption(stringOption)}");
25+
context.Console.WriteLine($"Bool option: {context.ParseResult.GetValue(boolOption)}");
26+
context.Console.WriteLine($"String option: {context.ParseResult.GetValue(stringOption)}");
2727
}
2828
}
2929
}

src/System.CommandLine.Tests/TestApps/Trimming/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
command.SetHandler(context =>
1212
{
13-
context.Console.Write($"The file you chose was: {context.ParseResult.GetValueForArgument(fileArgument)}");
13+
context.Console.Write($"The file you chose was: {context.ParseResult.GetValue(fileArgument)}");
1414
});
1515

1616
command.Invoke(args);

0 commit comments

Comments
 (0)