Merge pull request #3844 from epage/occurrences

fix(parser): Add value_source as a replacement for occurrences_of
This commit is contained in:
Ed Page 2022-06-16 13:50:17 -05:00 committed by GitHub
commit 5fdc26ee9a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)]