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
openFSharp.CommandLinelet inlineexactlyOne(co:#ICommandOption<_>)=
co |> CommandOption.zeroOrMore
|> CommandOption.map (function| x ::[]-> x
|_->letmsg= sprintf "the option '%s' is required and should be provided only once"(co.Summary.NameRepresentations |> List.head)
OptionParseFailed (co.Summary, msg)|> raise
)
Hey,
It's not really an issue, but a question.
Is there a way to set an option required?
Something like:
The text was updated successfully, but these errors were encountered: