CLI - Command Line Interface in Rust

cli

Rust provides access to the values on the command line via the std::env::args function. We can use this in its raw form:

There are also crates that provide a much nicer and more comprehensive interface to parse the content of args that were provided on the command line. We cover:

  • Clap - Command Line Argument Parser for Rust

We also maintain a list of Open Source Applications with links to many command line applications written in Rust.

Related Pages

Rust Maven

Author

Gabor Szabo (szabgab)

Gabor Szabo, the author of the Rust Maven web site maintains several Open source projects in Rust and while he still feels he has tons of new things to learn about Rust he already offers training courses in Rust and still teaches Python, Perl, git, GitHub, GitLab, CI, and testing.

Gabor Szabo