From 2608540940c8bb66e517b65706bc7dea55510682 Mon Sep 17 00:00:00 2001 From: nabijaczleweli Date: Sun, 16 Oct 2016 21:14:31 +0200 Subject: [PATCH] imp(with_defaults): Deprecate App::with_defaults() Following the discussion on #638 a consensus that it can never work (and was a mistake in the first place) has been reached Closes #638 --- src/app/mod.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/app/mod.rs b/src/app/mod.rs index e879eb5abca..38370fa3bd0 100644 --- a/src/app/mod.rs +++ b/src/app/mod.rs @@ -98,6 +98,7 @@ impl<'a, 'b> App<'a, 'b> { /// [`crate_version!`]: ./macro.crate_version!.html /// [`App::author`]: ./struct.App.html#method.author /// [`App::version`]: ./struct.App.html#method.author + #[deprecated(since="2.14.1", note="Can never work; use explicit App::author() and App::version() calls instead")] pub fn with_defaults>(n: S) -> Self { let mut a = App { p: Parser::with_name(n.into()) }; a.p.meta.author = Some(crate_authors!());