I have a variable
#[clap(
group = "abc",
long = "attribute1",
value_name = "ATTRIBUTE1"
)]
attribute1: Option<String>,
I want to enforce the users attribute1
can only provided a value from within an acceptable set of values?
acceptable_value = ["ABC", "QWERTY", "XYZ]
Can this be enforced as part of clap variable properties? or does this need to happen as part of logic execution later on in the code when using the variable?
Btw, using rust clap 3.2