From 24fd0a71f0945181a965a680300fc35a1b906bc8 Mon Sep 17 00:00:00 2001 From: Ed Page Date: Tue, 11 Feb 2025 13:30:29 -0600 Subject: [PATCH] docs(parser): Clarify meaning of args_present --- clap_builder/src/parser/matches/arg_matches.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/clap_builder/src/parser/matches/arg_matches.rs b/clap_builder/src/parser/matches/arg_matches.rs index 67929a1b22d..78e6c758a2b 100644 --- a/clap_builder/src/parser/matches/arg_matches.rs +++ b/clap_builder/src/parser/matches/arg_matches.rs @@ -554,7 +554,10 @@ impl ArgMatches { } } - /// Check if any args were present on the command line + /// Check if any [`Arg`][crate::Arg]s were present on the command line + /// + /// See [`ArgMatches::subcommand_name()`] or [`ArgMatches::subcommand()`] to check if a + /// subcommand was present on the command line. /// /// # Examples ///