mirror of
https://github.com/clap-rs/clap
synced 2024-12-13 14:22:34 +00:00
Merge pull request #3908 from jturner314-nrl/derive-ref-quotes
docs(derive): Clarify `rename_all` takes a string literal
This commit is contained in:
commit
5c7ad01587
1 changed files with 9 additions and 9 deletions
|
@ -152,12 +152,12 @@ when defining subcommands.
|
|||
- `next_display_order`: `clap::Command::next_display_order`
|
||||
- `next_help_heading`: `clap::Command::next_help_heading`
|
||||
- When `flatten`ing `Args`, this is scoped to just the args in this struct and any struct `flatten`ed into it
|
||||
- `rename_all = <expr>`: Override default field / variant name case conversion for `Command::name` / `Arg::name`
|
||||
- When not present: `kebab-case`
|
||||
- Available values: `camelCase`, `kebab-case`, `PascalCase`, `SCREAMING_SNAKE_CASE`, `snake_case`, `lower`, `UPPER`, `verbatim`
|
||||
- `rename_all_env = <expr>`: Override default field name case conversion for env variables for `clap::Arg::env`
|
||||
- When not present: `SCREAMING_SNAKE_CASE`
|
||||
- Available values: `camelCase`, `kebab-case`, `PascalCase`, `SCREAMING_SNAKE_CASE`, `snake_case`, `lower`, `UPPER`, `verbatim`
|
||||
- `rename_all = <string_literal>`: Override default field / variant name case conversion for `Command::name` / `Arg::name`
|
||||
- When not present: `"kebab-case"`
|
||||
- Available values: `"camelCase"`, `"kebab-case"`, `"PascalCase"`, `"SCREAMING_SNAKE_CASE"`, `"snake_case"`, `"lower"`, `"UPPER"`, `"verbatim"`
|
||||
- `rename_all_env = <string_literal>`: Override default field name case conversion for env variables for `clap::Arg::env`
|
||||
- When not present: `"SCREAMING_SNAKE_CASE"`
|
||||
- Available values: `"camelCase"`, `"kebab-case"`, `"PascalCase"`, `"SCREAMING_SNAKE_CASE"`, `"snake_case"`, `"lower"`, `"UPPER"`, `"verbatim"`
|
||||
|
||||
And for `Subcommand` variants:
|
||||
- `skip`: Ignore this variant
|
||||
|
@ -228,9 +228,9 @@ These correspond to a `clap::Arg`.
|
|||
|
||||
### Arg Enum Attributes
|
||||
|
||||
- `rename_all = <expr>`: Override default field / variant name case conversion for `PossibleValue::new`
|
||||
- When not present: `kebab-case`
|
||||
- Available values: `camelCase`, `kebab-case`, `PascalCase`, `SCREAMING_SNAKE_CASE`, `snake_case`, `lower`, `UPPER`, `verbatim`
|
||||
- `rename_all = <string_literal>`: Override default field / variant name case conversion for `PossibleValue::new`
|
||||
- When not present: `"kebab-case"`
|
||||
- Available values: `"camelCase"`, `"kebab-case"`, `"PascalCase"`, `"SCREAMING_SNAKE_CASE"`, `"snake_case"`, `"lower"`, `"UPPER"`, `"verbatim"`
|
||||
|
||||
### Possible Value Attributes
|
||||
|
||||
|
|
Loading…
Reference in a new issue