mirror of
https://github.com/clap-rs/clap
synced 2024-12-12 13:52:34 +00:00
Add "" around string literals in derive ref docs
When deriving `ValueEnum` (and possibly in other cases as well), the attribute is silently ignored if the user leaves off these quotes.
This commit is contained in:
parent
7c0068e5b9
commit
93565c226c
1 changed files with 6 additions and 6 deletions
|
@ -153,11 +153,11 @@ when defining subcommands.
|
||||||
- `next_help_heading`: `clap::Command::next_help_heading`
|
- `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
|
- 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`
|
- `rename_all = <expr>`: Override default field / variant name case conversion for `Command::name` / `Arg::name`
|
||||||
- When not present: `kebab-case`
|
- When not present: `"kebab-case"`
|
||||||
- Available values: `camelCase`, `kebab-case`, `PascalCase`, `SCREAMING_SNAKE_CASE`, `snake_case`, `lower`, `UPPER`, `verbatim`
|
- 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`
|
- `rename_all_env = <expr>`: Override default field name case conversion for env variables for `clap::Arg::env`
|
||||||
- When not present: `SCREAMING_SNAKE_CASE`
|
- When not present: `"SCREAMING_SNAKE_CASE"`
|
||||||
- Available values: `camelCase`, `kebab-case`, `PascalCase`, `SCREAMING_SNAKE_CASE`, `snake_case`, `lower`, `UPPER`, `verbatim`
|
- Available values: `"camelCase"`, `"kebab-case"`, `"PascalCase"`, `"SCREAMING_SNAKE_CASE"`, `"snake_case"`, `"lower"`, `"UPPER"`, `"verbatim"`
|
||||||
|
|
||||||
And for `Subcommand` variants:
|
And for `Subcommand` variants:
|
||||||
- `skip`: Ignore this variant
|
- `skip`: Ignore this variant
|
||||||
|
@ -229,8 +229,8 @@ These correspond to a `clap::Arg`.
|
||||||
### Arg Enum Attributes
|
### Arg Enum Attributes
|
||||||
|
|
||||||
- `rename_all = <expr>`: Override default field / variant name case conversion for `PossibleValue::new`
|
- `rename_all = <expr>`: Override default field / variant name case conversion for `PossibleValue::new`
|
||||||
- When not present: `kebab-case`
|
- When not present: `"kebab-case"`
|
||||||
- Available values: `camelCase`, `kebab-case`, `PascalCase`, `SCREAMING_SNAKE_CASE`, `snake_case`, `lower`, `UPPER`, `verbatim`
|
- Available values: `"camelCase"`, `"kebab-case"`, `"PascalCase"`, `"SCREAMING_SNAKE_CASE"`, `"snake_case"`, `"lower"`, `"UPPER"`, `"verbatim"`
|
||||||
|
|
||||||
### Possible Value Attributes
|
### Possible Value Attributes
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue