Hello,
I just created some very basic bindings for docopt library for a personal project. This is a library that makes the creation of cli programs very easy, you just provide a help string and it parses and reads the arguments accordingly, then it just returns an object.
Here are my bindings: https://github.com/danielo515/reason-rancher-cli/blob/feature/sumtTypes/src/Docopt.re
It is a Functor because I don’t know beforehand the possible return type of the docopt library, so I have to accept them as an argument.
Also I’m still not sure how can I accept a nullable string from Ocaml/Reason, that’s why version is not yet supported
I am looking for a better way of doing this if there is any.
Should I publish those bindings ? I can even provide some usage examples because… I’m actually using it
Thanks for your advise
Regards