mirror of
https://github.com/clap-rs/clap
synced 2024-12-12 13:52:34 +00:00
docs(derive): Clarify value attributes are for PossibleValue
This commit is contained in:
parent
37ba6075a9
commit
db97a2c5be
1 changed files with 1 additions and 1 deletions
|
@ -165,7 +165,7 @@
|
|||
//!
|
||||
//! For example, if you have arguments of specific values you want to test for, you can derive
|
||||
//! [`ValueEnum`][super#valueenum-attributes]
|
||||
//! (any [`PossibleValue`] builder function can be used as variant attributes).
|
||||
//! (any [`PossibleValue`] builder function can be used as a `#[value]` attribute on enum variants).
|
||||
//!
|
||||
//! This allows you specify the valid values for that argument. If the user does not use one of
|
||||
//! those specific values, they will receive a graceful exit with error message informing them
|
||||
|
|
Loading…
Reference in a new issue