mirror of
https://github.com/clap-rs/clap
synced 2024-12-14 06:42:33 +00:00
changed write!() to writeln!() to add a newline
This commit is contained in:
parent
d67c3bb7d3
commit
abef54862d
1 changed files with 3 additions and 3 deletions
|
@ -1885,12 +1885,12 @@ impl<'b> App<'b> {
|
|||
if let Some(bn) = self.bin_name.as_ref() {
|
||||
if bn.contains(' ') {
|
||||
// In case we're dealing with subcommands i.e. git mv is translated to git-mv
|
||||
write!(w, "{} {}", bn.replace(" ", "-"), ver)
|
||||
writeln!(w, "{} {}", bn.replace(" ", "-"), ver)
|
||||
} else {
|
||||
write!(w, "{} {}", &self.name[..], ver)
|
||||
writeln!(w, "{} {}", &self.name[..], ver)
|
||||
}
|
||||
} else {
|
||||
write!(w, "{} {}", &self.name[..], ver)
|
||||
writeln!(w, "{} {}", &self.name[..], ver)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue