mirror of
https://github.com/clap-rs/clap
synced 2024-12-15 15:22:30 +00:00
9e38353442
We aren't enumerating arguments but values for an argument, so the name should reflect that. This will be important as part of #1807 when we have more specific attribute names.
8 lines
131 B
Rust
8 lines
131 B
Rust
use clap::ValueEnum;
|
|
|
|
#[derive(ValueEnum, Clone, Debug)]
|
|
struct Opt {}
|
|
|
|
fn main() {
|
|
println!("{:?}", Opt::value_variants());
|
|
}
|