File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
src/System.CommandLine.Tests/TestApps Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff 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}
Original file line number Diff line number Diff line change 1010
1111command . 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
1616command . Invoke ( args ) ;
You can’t perform that action at this time.
0 commit comments