mirror of
https://github.com/clap-rs/clap
synced 2024-12-04 18:19:13 +00:00
fix(help): Style arg groups
This commit is contained in:
parent
220597eb97
commit
75365ad7d5
1 changed files with 2 additions and 1 deletions
|
@ -4578,8 +4578,9 @@ impl Command {
|
|||
})
|
||||
.collect::<Vec<_>>()
|
||||
.join("|");
|
||||
let placeholder = self.get_styles().get_placeholder();
|
||||
let mut styled = StyledStr::new();
|
||||
write!(&mut styled, "<{g_string}>").unwrap();
|
||||
write!(&mut styled, "{placeholder}<{g_string}>{placeholder:#}").unwrap();
|
||||
styled
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue