Input helpers
·
162 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.Optionoverloads that take aname/aliasand aconfigurefunction that allows you to manually set properties on the S.CLOption<'T>. - New
Input.OptionMaybeoverloads that take aname/aliasand aconfigurefunction that allows you to manually set properties on the S.CLOption<'T option>. - New
Input.Argumentoverloads that take aname/aliasand aconfigurefunction 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.OfOptionInput.OfArgument- An alias forHandlerInput.OfArgument