Working with command-line arguments is a great way to configure a program to run specific tasks, use a particular set of input data, or simply to output more information. However, looking at the help text output of a Linux program these days, it offers an impressive amount of information on all of the flags and arguments it can work with. In addition to that, the text is printed in a somewhat standardized format, which is why this is usually done with strong library support.
Rust's most popular crate for working with command-line arguments is called clap (https://clap.rs/), and, in this recipe, we are looking at how we can leverage its strengths to create a useful command-line interface.