Skip to content

Commit

Permalink
fix(parser): Deprecate is_valid_arg
Browse files Browse the repository at this point in the history
  • Loading branch information
epage committed May 25, 2022
1 parent c5ac8f3 commit a3a62ac
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/parser/matches/arg_matches.rs
Expand Up @@ -835,13 +835,9 @@ impl ArgMatches {
Some(i)
}

/// Check if an arg can be queried
///
/// By default, `ArgMatches` functions assert on undefined `Id`s to help catch programmer
/// mistakes. In some context, this doesn't work, so users can use this function to check
/// before they do a query on `ArgMatches`.
#[inline]
#[doc(hidden)]
#[deprecated(since = "3.2.0", note = "Replaced with `ArgMatches::try_get_one()`")]
pub fn is_valid_arg(&self, _id: impl Key) -> bool {
#[cfg(debug_assertions)]
{
Expand Down

0 comments on commit a3a62ac

Please sign in to comment.