Skip to content

Commit

Permalink
fix(parser): Add value_source as a replacement for occurrences_of
Browse files Browse the repository at this point in the history
This was an oversight when listing out the options as identified when
looking at oxidecomputer/humility#161.
  • Loading branch information
epage committed Jun 16, 2022
1 parent 48d23b4 commit f131d46
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 f131d46

Please sign in to comment.