From b95ced6fb3fcb70dead681f4936504ef900c8489 Mon Sep 17 00:00:00 2001 From: Marcin Puc Date: Mon, 22 Nov 2021 11:23:28 +0100 Subject: [PATCH] Fix docs for Arg aliases (clap-rs/clap#3044) --- src/build/arg/mod.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/build/arg/mod.rs b/src/build/arg/mod.rs index 30d95771..8b27fb1e 100644 --- a/src/build/arg/mod.rs +++ b/src/build/arg/mod.rs @@ -579,7 +579,7 @@ impl<'help> Arg<'help> { } /// Allows adding a [`Arg`] alias that functions exactly like those defined with - /// [`Arg::alias`], except that they are visible inside the help message. + /// [`Arg::short_alias`], except that they are visible inside the help message. /// /// # Examples /// @@ -596,7 +596,6 @@ impl<'help> Arg<'help> { /// assert!(m.is_present("test")); /// assert_eq!(m.value_of("test"), Some("coffee")); /// ``` - /// [`App::alias`]: Arg::short_alias() pub fn visible_short_alias(mut self, name: char) -> Self { assert!(name != '-', "short alias name cannot be `-`"); @@ -627,7 +626,7 @@ impl<'help> Arg<'help> { } /// Allows adding multiple [`Arg`] aliases that functions exactly like those defined - /// with [`Arg::aliases`], except that they are visible inside the help message. + /// with [`Arg::short_aliases`], except that they are visible inside the help message. /// /// # Examples /// @@ -642,7 +641,6 @@ impl<'help> Arg<'help> { /// ]); /// assert!(m.is_present("test")); /// ``` - /// [`App::aliases`]: Arg::short_aliases() pub fn visible_short_aliases(mut self, names: &[char]) -> Self { for n in names { assert!(n != &'-', "short alias name cannot be `-`");