For F# apps, I've traditionally used different functional-friendly command line parsers like Argu and CommandLineParser.
Now that Microsoft has come up with System.CommandLine (with potentially brings better support and documentation), is it usable from F#?
Functional-friendliness is subjective, but I found the API rather convenient for F#:
To make code more fun, some trivial helpers can help:
To be used like:
This also seems to be a dedicated library for having
System.CommandLinein the F# way.F# was likely taken into mind during the library design, although there are some caveats, e.g. this one for command handler binding.
In general, the library is still in the preview so the API might substantially change in the future.