From 52d110df816e0fb662a82cc2f5f82845ed52a497 Mon Sep 17 00:00:00 2001 From: Kevin K Date: Sat, 6 May 2017 19:11:57 -0400 Subject: [PATCH] docs(AllowHyphenValues): updates the docs to remove old limitations that no longer apply --- src/app/settings.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/app/settings.rs b/src/app/settings.rs index abc544a7..6049ccba 100644 --- a/src/app/settings.rs +++ b/src/app/settings.rs @@ -162,11 +162,9 @@ pub enum AppSettings { /// Specifies that leading hyphens are allowed in argument *values*, such as negative numbers /// like `-10`. (which would otherwise be parsed as another flag or option) /// - /// **NOTE:** This can only be set application wide and not on a per argument basis. - /// /// **NOTE:** Use this setting with caution as it silences certain circumstances which would /// otherwise be an error (such as accidentally forgetting to specify a value for leading - /// option) + /// option). It is preferred to set this on a per argument basis, via [`Arg::allow_hyphen_values`] /// /// # Examples /// @@ -183,6 +181,7 @@ pub enum AppSettings { /// assert_eq!(m.value_of("neg"), Some("-20")); /// # ; /// ``` + /// [`Arg::allow_hyphen_values`]: ./struct.Arg.html#method.allow_hyphen_values AllowLeadingHyphen, /// Allows negative numbers to pass as values. This is similar to