Skip to content

Glossary: Rust in Practice

ValueEnum

Also written: value_enum

A clap derive for an enum whose variants become the fixed words an option accepts, such as `--format text` or `json`.

Where the book teaches it

Related terms

clap