mirror of
https://github.com/clap-rs/clap
synced 2024-12-15 07:12:32 +00:00
Apply wrapping to {author} and {about} template tags.
Previously wrapping was only applied to the {*-with-newline} variants.
This commit is contained in:
parent
059503e54d
commit
afcacb0626
1 changed files with 2 additions and 2 deletions
|
@ -983,7 +983,7 @@ impl<'help, 'app, 'parser, 'writer> Help<'help, 'app, 'parser, 'writer> {
|
||||||
}
|
}
|
||||||
b"author" => {
|
b"author" => {
|
||||||
if let Some(output) = self.parser.app.author {
|
if let Some(output) = self.parser.app.author {
|
||||||
self.none(output)?;
|
self.none(&wrap_help(output, self.term_w))?;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
b"author-with-newline" => {
|
b"author-with-newline" => {
|
||||||
|
@ -999,7 +999,7 @@ impl<'help, 'app, 'parser, 'writer> Help<'help, 'app, 'parser, 'writer> {
|
||||||
self.parser.app.about
|
self.parser.app.about
|
||||||
};
|
};
|
||||||
if let Some(output) = about {
|
if let Some(output) = about {
|
||||||
self.none(output)?;
|
self.none(&wrap_help(output, self.term_w))?;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
b"about-with-newline" => {
|
b"about-with-newline" => {
|
||||||
|
|
Loading…
Reference in a new issue