Clap is a simple to use, efficient, and full-featured Command Line Argument Parser for Rust.
-
Getting started with Clap a single required parameter -
arg,long,derive,struct,--help -
Clap - show version number of the command line application in Rust -
version,command -
Clap - accept string, integer, floating point numbers, booleans, and more on the command line -
String,i32,f32,bool,PathBuf -
Clap - default values for CLI command line parameters in Rust -
default_value,default_value_t -
Clap - Add help text for each command line parameter in Rust -
help -
Clap - positional command line arguments in Rust -
required,default_value -
Clap - subcommands -
Subcommand -
Clap - Showing the description in the help using the about command -
about,description. -
How to include sha1 from git in the version report using derive interface of Clap? -
version,about,help. -
Video: Accepting parameters on the command line using Rust Clap
Documentation of the derive interface.