mirror of
https://github.com/clap-rs/clap
synced 2024-12-13 14:22:34 +00:00
refactor(help): Be consistent in join style
This commit is contained in:
parent
543ad0ce06
commit
9227ab1c7c
1 changed files with 2 additions and 5 deletions
|
@ -914,11 +914,8 @@ impl<'cmd, 'writer> HelpTemplate<'cmd, 'writer> {
|
|||
|
||||
let next_line_help = self.will_subcommands_wrap(cmd.get_subcommands(), longest);
|
||||
|
||||
let mut first = true;
|
||||
for (_, sc_str, sc) in ord_v {
|
||||
if first {
|
||||
first = false;
|
||||
} else {
|
||||
for (i, (_, sc_str, sc)) in ord_v.into_iter().enumerate() {
|
||||
if 0 < i {
|
||||
self.writer.push_str("\n");
|
||||
}
|
||||
self.write_subcommand(sc_str, sc, next_line_help, longest);
|
||||
|
|
Loading…
Reference in a new issue