mirror of
https://github.com/clap-rs/clap
synced 2025-03-02 14:27:28 +00:00
docs(derive): Update deprecation notice
This commit is contained in:
parent
a96e7cfc7f
commit
0c367104ae
1 changed files with 4 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue