mirror of
https://github.com/clap-rs/clap
synced 2024-12-13 22:32:33 +00:00
fix(help): Command::print_help should respect disable_colored_help
This commit is contained in:
parent
a2f3ee2cfa
commit
4eeee9b110
1 changed files with 2 additions and 2 deletions
|
@ -717,7 +717,7 @@ impl Command {
|
||||||
/// [`io::stdout()`]: std::io::stdout()
|
/// [`io::stdout()`]: std::io::stdout()
|
||||||
pub fn print_help(&mut self) -> io::Result<()> {
|
pub fn print_help(&mut self) -> io::Result<()> {
|
||||||
self._build_self();
|
self._build_self();
|
||||||
let color = self.get_color();
|
let color = self.color_help();
|
||||||
|
|
||||||
let mut styled = StyledStr::new();
|
let mut styled = StyledStr::new();
|
||||||
let usage = Usage::new(self);
|
let usage = Usage::new(self);
|
||||||
|
@ -744,7 +744,7 @@ impl Command {
|
||||||
/// [`--help` (long)]: Arg::long_help()
|
/// [`--help` (long)]: Arg::long_help()
|
||||||
pub fn print_long_help(&mut self) -> io::Result<()> {
|
pub fn print_long_help(&mut self) -> io::Result<()> {
|
||||||
self._build_self();
|
self._build_self();
|
||||||
let color = self.get_color();
|
let color = self.color_help();
|
||||||
|
|
||||||
let mut styled = StyledStr::new();
|
let mut styled = StyledStr::new();
|
||||||
let usage = Usage::new(self);
|
let usage = Usage::new(self);
|
||||||
|
|
Loading…
Reference in a new issue