docs(derive): Update deprecation notice

This commit is contained in:
Ed Page 2022-06-13 18:54:43 -05:00
parent a96e7cfc7f
commit 0c367104ae

View file

@ -208,7 +208,10 @@ These correspond to a `clap::Arg`.
- When `Option<T>`, the subcommand becomes optional
- `from_global`: Read a `clap::Arg::global` argument (raw attribute), regardless of what subcommand you are in
- `parse(<kind> [= <function>])`: `clap::Arg::validator` and `clap::ArgMatches::values_of_t`
- **Deprecated:** except for `from_flag` or `from_occurrences`, instead use `value_parser`
- **Deprecated:**
- Use `value_parser(...)` for `from_str`, `try_from_str`, `from_os_str`, and `try_from_os_str`
- Use `action(ArgAction::Count` for `from_occurrences`
- Use `action(ArgAction::SetTrue` for `from_flag`
- Default: `try_from_str`
- Warning: for `Path` / `OsString`, be sure to use `try_from_os_str`
- See [Arg Types](#arg-types) for more details