Since it is nicely usable in F#, I recommend using [Argu](https://fsprojects.github.io/Argu/) for command-line argument parsing.