diff --git a/src/output/help.rs b/src/output/help.rs index 885b4779..3de4cd62 100644 --- a/src/output/help.rs +++ b/src/output/help.rs @@ -828,12 +828,13 @@ impl<'b, 'c, 'd, 'w> Help<'b, 'c, 'd, 'w> { if let Some(author) = self.parser.app.author { write_thing!(author) } - if let Some(about) = self.parser.app.long_about { + + if self.use_long && self.parser.app.long_about.is_some() { debugln!("Help::write_default_help: writing long about"); - write_thing!(about) - } else if let Some(about) = self.parser.app.about { + write_thing!(self.parser.app.long_about.unwrap()) + } else if self.parser.app.about.is_some() { debugln!("Help::write_default_help: writing about"); - write_thing!(about) + write_thing!(self.parser.app.about.unwrap()) } self.color(Format::Warning("\nUSAGE:"))?; diff --git a/tests/help.rs b/tests/help.rs index 2ab68747..853b0ad5 100644 --- a/tests/help.rs +++ b/tests/help.rs @@ -1530,7 +1530,7 @@ fn show_long_about_issue_897() { } static ISSUE_897_SHORT: &str = "ctest-foo 0.1 -Long about foo +About foo USAGE: ctest foo