mirror of
https://github.com/clap-rs/clap
synced 2024-12-14 06:42:33 +00:00
fix(build/app): don't use long help for print_help()
For long help, there's still `print_long_help()`.
This commit is contained in:
parent
087fab2ab3
commit
2bc057eaa5
1 changed files with 1 additions and 1 deletions
|
@ -1116,7 +1116,7 @@ impl<'b> App<'b> {
|
|||
let p = Parser::new(self);
|
||||
let mut c = Colorizer::new(false, p.color_help());
|
||||
|
||||
Help::new(HelpWriter::Buffer(&mut c), &p, true).write_help()?;
|
||||
Help::new(HelpWriter::Buffer(&mut c), &p, false).write_help()?;
|
||||
|
||||
Ok(c.print()?)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue