Skip to content

Commit

Permalink
docs(derive): Include name magic attribute
Browse files Browse the repository at this point in the history
Inspired by #3242l
  • Loading branch information
epage committed Jan 3, 2022
1 parent 06f24b1 commit b0cb205
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions examples/derive_ref/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,8 @@ Notes:

These correspond to a `clap::PossibleValue`.

- `name = <expr>`: `clap::PossibleValue::new`
- When not present: case-converted field name is used
- `help = <expr>`: `clap::PossibleValue::help`
- When not present: Doc comment summary

Expand Down

0 comments on commit b0cb205

Please sign in to comment.