Skip to content

Commit

Permalink
Auto merge of #692 - nabijaczleweli:imp/638-app-with_defaults-depreca…
Browse files Browse the repository at this point in the history
…te, r=kbknapp

Deprecate App::with_defaults()

Closes #638
  • Loading branch information
homu committed Oct 17, 2016
2 parents 47ffccd + 2608540 commit c9230c1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/app/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<S: Into<String>>(n: S) -> Self {
let mut a = App { p: Parser::with_name(n.into()) };
a.p.meta.author = Some(crate_authors!());
Expand Down

0 comments on commit c9230c1

Please sign in to comment.