Skip to content

CLI: Accepting parameters on the command line using Rust Clap (English, Virtual)

Photo of Gabor Szabo
Hosted By
Gabor S.
CLI: Accepting parameters on the command line using Rust Clap (English, Virtual)

Details

When you start writing a command line application you usually start out with a very limited number of parameters. Maybe just 2 values. In that case using the `std::env::args` is enough.

However as you start adding more and more parameters that some of them depend on each other then very quickly you can get in trouble.

The clap crate is an excellent solution for such cases.

In this workshop you'll learn quite a few thing using the Clap crate.

If you have any specific use-case in mind, please comment on this event so I might be able to prepare such an example as well.

The workshop includes presentations and hands-on work.

The workshop will be via Zoom (link will be announced close to the event)
Language: English.
Workshop lead: Gabor Szabo
Requirements: Basic familiarity with writing Rust will be enough.
Length: up to 2 hours.
Cost: This workshop is free of charge thanks to the people who support me via one of the following systems: Github sponsor, Patreon, or directly via PayPal.

Photo of Code Mavens πŸ¦€ - 🐍 - πŸͺ group
Code Mavens πŸ¦€ - 🐍 - πŸͺ
See more events