In the mean time, have a look here[1] for the possible values.
[1]: https://github.com/moses-palmer/labyru/blob/7b92be3ae279a9ff...
use clap::{Parser, ValueEnum}; #[derive(ValueEnum, Debug, Clone)] pub enum Foo { Bar, Baz, } #[derive(Parser, Debug)] #[command(author, version, about, long_about = None)] pub struct Args { /// description #[arg(short = 'f', long = "foo", value_enum, default_value = "bar")] foo: Foo, }
-f, --foo <FOO> description [default: bar] [possible values: bar, baz]