Skip to content

Commit

Permalink
Merge #1874
Browse files Browse the repository at this point in the history
1874: Rename some internal stuff r=CreepySkeleton a=pksunkara



Co-authored-by: Pavan Kumar Sunkara <pavan.sss1991@gmail.com>
  • Loading branch information
bors[bot] and pksunkara authored Apr 28, 2020
2 parents 0d82c12 + 348744a commit 0bf7077
Show file tree
Hide file tree
Showing 4 changed files with 53 additions and 170 deletions.
8 changes: 4 additions & 4 deletions src/build/app/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ pub struct App<'b> {
pub(crate) long_version: Option<&'b str>,
pub(crate) about: Option<&'b str>,
pub(crate) long_about: Option<&'b str>,
pub(crate) more_help: Option<&'b str>,
pub(crate) pre_help: Option<&'b str>,
pub(crate) before_help: Option<&'b str>,
pub(crate) after_help: Option<&'b str>,
pub(crate) aliases: Option<Vec<(&'b str, bool)>>, // (name, visible)
pub(crate) usage_str: Option<&'b str>,
pub(crate) usage: Option<String>,
Expand Down Expand Up @@ -345,7 +345,7 @@ impl<'b> App<'b> {
/// # ;
/// ```
pub fn after_help<S: Into<&'b str>>(mut self, help: S) -> Self {
self.more_help = Some(help.into());
self.after_help = Some(help.into());
self
}

Expand All @@ -362,7 +362,7 @@ impl<'b> App<'b> {
/// # ;
/// ```
pub fn before_help<S: Into<&'b str>>(mut self, help: S) -> Self {
self.pre_help = Some(help.into());
self.before_help = Some(help.into());
self
}

Expand Down
Loading

0 comments on commit 0bf7077

Please sign in to comment.