Skip to content

Commit

Permalink
Merge pull request clap-rs#3844 from epage/occurrences
Browse files Browse the repository at this point in the history
fix(parser): Add value_source as a replacement for occurrences_of
  • Loading branch information
epage committed Jun 16, 2022
2 parents 48d23b4 + f131d46 commit 5fdc26e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/parser/matches/arg_matches.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
Expand Down

0 comments on commit 5fdc26e

Please sign in to comment.