Hello Clap in Rust

A very simple tutorial of using Clap for CLI

Manusaporn Treerungroj
Noob Learning
Jul 27, 2022

--

Hi guys! 👋 I’ve spent an hour trying to find just a simple example of how to parse arguments when running a CLI using Clap in Rust. Most of the tutorials are outdated and too complicated, so I created a very simple one here. Hope this can save your time too!

Rustを勉強しよう!

Try:

cargo run greeting --greet Helle --name "John Doe"

Github 👉 https://github.com/mtreerungroj/hello-clap-rs

一緒に頑張ろう!また〜🫶

--

--