Input helpers
·
153 commits
to main
since this release
This release adds a few new Input
methods to make it more convenient to modify the underlying System.CommandLine
properties for Option
and Argument
inputs.
- New
Input.Option
overloads that take aname
/alias
and aconfigure
function that allows you to manually set properties on the S.CLOption<'T>
. - New
Input.OptionMaybe
overloads that take aname
/alias
and aconfigure
function that allows you to manually set properties on the S.CLOption<'T option>
. - New
Input.Argument
overloads that take aname
/alias
and aconfigure
function that allows you to manually set properties on the S.CLArgument<'T>
.
Please see updated docs here:
https://github.com/JordanMarr/FSharp.SystemCommandLine#setting-input-properties-manually
Also, two new alias methods (for easier discoverability) for converting existing SCL inputs:
Input.OfOption
- An alias forHandlerInput.OfOption
Input.OfArgument
- An alias forHandlerInput.OfArgument