From 45f281b67ef1f71d28590e1d3557f6fabdabff4d Mon Sep 17 00:00:00 2001 From: Pavan Kumar Sunkara Date: Wed, 3 Nov 2021 18:52:12 +0000 Subject: [PATCH] Revert "Revert "Revert "docs: Clarify corner caseses with default values""" This reverts commit 98f696c0a62e487e00070bc35d5a7a384550bb2e. --- src/build/arg/mod.rs | 12 ------------ src/build/arg_group.rs | 10 ---------- 2 files changed, 22 deletions(-) diff --git a/src/build/arg/mod.rs b/src/build/arg/mod.rs index 385aa6b7..813b097b 100644 --- a/src/build/arg/mod.rs +++ b/src/build/arg/mod.rs @@ -1044,8 +1044,6 @@ impl<'help> Arg<'help> { /// /// **NOTE** [`Arg::exclusive(true)`] allows specifying an argument which conflicts with every other argument. /// - /// **NOTE:** An argument is considered present when there is a [`Arg::default_value`] - /// /// # Examples /// /// ```rust @@ -1096,8 +1094,6 @@ impl<'help> Arg<'help> { /// /// **NOTE:** [`Arg::exclusive(true)`] allows specifying an argument which conflicts with every other argument. /// - /// **NOTE:** An argument is considered present when there is a [`Arg::default_value`] - /// /// # Examples /// /// ```rust @@ -1331,8 +1327,6 @@ impl<'help> Arg<'help> { /// /// **NOTE:** [Conflicting] rules and [override] rules take precedence over being required /// - /// **NOTE:** This argument is considered present when there is a [`Arg::default_value`] - /// /// # Examples /// /// ```rust @@ -1394,8 +1388,6 @@ impl<'help> Arg<'help> { /// if this arg (`self`) is present and its value equals to `val`. /// If it does, `another_arg` will be marked as required. /// - /// **NOTE:** This argument is considered present when there is a [`Arg::default_value`] - /// /// # Examples /// /// ```rust @@ -1517,8 +1509,6 @@ impl<'help> Arg<'help> { /// Allows specifying that this argument is [required] only if the specified /// `arg` is present at runtime and its value equals `val`. /// - /// **NOTE:** This argument is considered present when there is a [`Arg::default_value`] - /// /// # Examples /// /// ```rust @@ -1795,8 +1785,6 @@ impl<'help> Arg<'help> { /// **NOTE:** [Conflicting] rules and [override] rules take precedence over being required /// by default. /// - /// **NOTE:** This argument is considered present when there is a [`Arg::default_value`] - /// /// # Examples /// /// ```rust diff --git a/src/build/arg_group.rs b/src/build/arg_group.rs index 83d4ad11..809441c5 100644 --- a/src/build/arg_group.rs +++ b/src/build/arg_group.rs @@ -249,8 +249,6 @@ impl<'help> ArgGroup<'help> { /// Use of more than one arg is an error." Vice setting `ArgGroup::multiple(true)` which /// states, '*At least* one arg from this group must be used. Using multiple is OK." /// - /// **NOTE:** An argument is considered present when there is a [`Arg::default_value`] - /// /// # Examples /// /// ```rust @@ -286,8 +284,6 @@ impl<'help> ArgGroup<'help> { /// /// **NOTE:** The name provided may be an argument, or group name /// - /// **NOTE:** An argument is considered present when there is a [`Arg::default_value`] - /// /// # Examples /// /// ```rust @@ -323,8 +319,6 @@ impl<'help> ArgGroup<'help> { /// /// **NOTE:** The names provided may be an argument, or group name /// - /// **NOTE:** An argument is considered present when there is a [`Arg::default_value`] - /// /// # Examples /// /// ```rust @@ -363,8 +357,6 @@ impl<'help> ArgGroup<'help> { /// /// **NOTE:** The name provided may be an argument, or group name /// - /// **NOTE:** An argument is considered present when there is a [`Arg::default_value`] - /// /// # Examples /// /// ```rust @@ -397,8 +389,6 @@ impl<'help> ArgGroup<'help> { /// /// **NOTE:** The names provided may be an argument, or group name /// - /// **NOTE:** An argument is considered present when there is a [`Arg::default_value`] - /// /// # Examples /// /// ```rust