Skip to content

Input helpers

Compare
Choose a tag to compare
@JordanMarr JordanMarr released this 25 Feb 20:25
· 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 a name/alias and a configure function that allows you to manually set properties on the S.CL Option<'T>.
  • New Input.OptionMaybe overloads that take a name/alias and a configure function that allows you to manually set properties on the S.CL Option<'T option>.
  • New Input.Argument overloads that take a name/alias and a configure function that allows you to manually set properties on the S.CL Argument<'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 for HandlerInput.OfOption
  • Input.OfArgument - An alias for HandlerInput.OfArgument