LukeShortCloud / rootpages

Root Pages is a collection of easy-to-reference tutorials and guides primarily for Linux and other UNIX-like systems.
Other
56 stars 6 forks source link

[programming][rust] Create CLI programs #1029

Open LukeShortCloud opened 1 year ago

LukeShortCloud commented 1 year ago

Using (1) the built-in std::env::args() function and (2) the Clap library.

https://rust-cli.github.io/book/tutorial/cli-args.html https://github.com/kyclark/command-line-rust/blob/main/09_grepr/src/lib.rs