You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+10-10Lines changed: 10 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
### FSharp.SystemCommandLine
1
+
### FSharp.SystemCommandLine (beta5)
2
2
[](https://www.nuget.org/packages/FSharp.SystemCommandLine/)
3
3
4
4
The purpose of this library is to provide quality of life improvements when using the [`System.CommandLine`](https://github.com/dotnet/command-line-api) API in F#.
@@ -7,10 +7,10 @@ _[Click here to view the old beta 4 README](README-beta4.md)_
7
7
8
8
## Features
9
9
10
-
* Mismatches between `inputs` and `setHandler` function parameters are caught at compile time
11
-
*`Input.Option` helper method avoids the need to use the `System.CommandLine.Option` type directly (which conflicts with the F# `Option` type)
12
-
*`Input.OptionMaybe` and `Input.ArgumentMaybe` methods allow you to use F# `option` types in your handler function.
13
-
*`Input.Context` method allows you to pass the `System.CommandLine.Invocation.InvocationContext` to your handler function.
10
+
* Mismatches between `inputs` and `setAction` handler function parameters are caught at compile time
11
+
*`Input.option` helper avoids the need to use the `System.CommandLine.Option` type directly (which conflicts with the F# `Option` type)
12
+
*`Input.optionMaybe` and `Input.argumentMaybe` helpers allow you to use F# `option` types in your handler function.
13
+
*`Input.context` helper allows you to pass the `ActionContext` to your action function which is necessary for some operations.
14
14
15
15
## Examples
16
16
@@ -41,7 +41,7 @@ let main argv =
41
41
}
42
42
```
43
43
44
-
💥WARNING: You must declare `inputs` before `setHandler` or else the type checking will not work properly and you will get a build error!💥
44
+
💥WARNING: You must declare `inputs` before `setAction` or else the type checking will not work properly and you will get a build error!💥
45
45
46
46
```batch
47
47
> unzip.exe "c:\test\stuff.zip"
@@ -52,7 +52,7 @@ let main argv =
52
52
```
53
53
54
54
55
-
_Notice that mismatches between the `setHandler` and the `inputs` are caught as a compile time error:_
55
+
_Notice that mismatches between the `setAction` and the `inputs` are caught as a compile time error:_
0 commit comments