We’ve stretched this little CLI example about as far as it will go. We’ve introduced Iterators, the Option and Result types, macros, traits, and more.
The next step in your CLI journey is going to be using an argument parsing crate.
This will allow us to provide a much more flexible API, such as passing tags in with -t tagname
instead of needing to use a comma-separated string.
We’ll rebuild effectively the same CLI application using Clap, a popular Rust argument parser, and explore how to use third party crates in the next workshop.