From 00b8205d22639d1b54b9c453c55c785aace52cb2 Mon Sep 17 00:00:00 2001 From: Kevin K Date: Wed, 24 Aug 2016 19:37:35 -0400 Subject: [PATCH] docs(Term Width): adds details about set_term_width(0) --- src/app/mod.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/app/mod.rs b/src/app/mod.rs index 4458d72a582..f567130c957 100644 --- a/src/app/mod.rs +++ b/src/app/mod.rs @@ -485,7 +485,7 @@ impl<'a, 'b> App<'a, 'b> { } /// Disables a single command, or [`SubCommand`], level setting. - /// + /// /// See [`AppSettings`] for a full list of possibilities and examples. /// /// # Examples @@ -522,10 +522,11 @@ impl<'a, 'b> App<'a, 'b> { for s in settings { self.p.unset(*s); } - self + self } - /// Sets the terminal width at which to wrap help messages. Defaults to `120`. + /// Sets the terminal width at which to wrap help messages. Defaults to `120`. Using `0` will + /// ignore terminal widths and use source formatting. /// /// `clap` automatically tries to determine the terminal width on Unix, Linux, and OSX if the /// `wrap_help` cargo "feature" has been used while compiling. If the terminal width cannot be