mirror of
https://github.com/clap-rs/clap
synced 2024-11-10 06:44:16 +00:00
Merge pull request #3844 from epage/occurrences
fix(parser): Add value_source as a replacement for occurrences_of
This commit is contained in:
commit
5fdc26ee9a
1 changed files with 3 additions and 3 deletions
|
@ -604,13 +604,13 @@ impl ArgMatches {
|
|||
value.and_then(MatchedArg::source)
|
||||
}
|
||||
|
||||
/// Deprecated, replaced with [`ArgAction::Count`][crate::ArgAction] or
|
||||
/// [`ArgMatches::get_many`]`.len()`.
|
||||
/// Deprecated, replaced with [`ArgAction::Count`][crate::ArgAction],
|
||||
/// [`ArgMatches::get_many`]`.len()`, or [`ArgMatches::value_source`].
|
||||
#[cfg_attr(
|
||||
feature = "deprecated",
|
||||
deprecated(
|
||||
since = "3.2.0",
|
||||
note = "Replaced with either `ArgAction::Count` or `ArgMatches::get_many(...).len()`"
|
||||
note = "Replaced with either `ArgAction::Count`, `ArgMatches::get_many(...).len()`, or `ArgMatches::value_source`"
|
||||
)
|
||||
)]
|
||||
#[cfg_attr(debug_assertions, track_caller)]
|
||||
|
|
Loading…
Reference in a new issue