Skip to content

Commit d8f4038

Browse files
authored
Update ActionContext section in README.md
1 parent 5c8e6f7 commit d8f4038

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -231,13 +231,13 @@ let main argv =
231231
Recursively deleting c:\_github\FSharp.SystemCommandLine\src\FSharp.SystemCommandLine
232232
```
233233

234-
### Passing the InvocationContext
234+
### Passing Context to Action
235235

236-
You may need to pass the `InvocationContext` to your handler function for the following reasons:
237-
* You need to get `CancellationToken`, `IConsole` or `ParseResult`
238-
* If you have more than 8 inputs, you will need to manually get the parsed values via the `InvocationContext`.
236+
You may need to pass the `ActionContext` to your handler function for the following reasons:
237+
* You need to access to the `CancellationToken` for an asynchronous action.
238+
* You need to manually parse values via the `ParseResult`. (This is necessary if you have more than 8 inputs.)
239239

240-
You can pass the `InvocationContext` via the `Input.Context()` method.
240+
You can pass the `ActionContext` via the `Input.Context()` method.
241241

242242
```F#
243243
module Program

0 commit comments

Comments
 (0)