3 ms·
> A good (trivial) example was a great command parsing library just doesn’t exist yet. There is a Docopt implementation in Rust[1], which is used by Cargo. It
by burntsushi 12y ago
> A good (trivial) example was a great command parsing library just doesn’t exist yet.
There is a Docopt implementation in Rust[1], which is used by Cargo. It tracks master and is regularly updated.
Interestingly, I've found people either love or hate Docopt, so maybe you knew about it but don't like it. :P
/shameless plug
[1] - https://github.com/docopt/docopt.rs https://github.com/docopt/docopt.rs
- TheHydroImpulse 12y agoI've had a really good experience using that library in Rust. It just works without much code or hassle.
- Ygg2 12y agoYeah, that whole part got the me the wrong way. Docopt is as far as I know the best. Also rust comes with a simpler getopt. It is broken now, but with the collection reform landing, what isn't broken.
- burntsushi 12y agoIt was only broken because I merged a PR that updated it to Rust master before the nightly was updated on Travis. :-) It's passing now that Travis updated to the new nightly. (But yup, it was collection reform.)