mirror of
https://github.com/clap-rs/clap
synced 2024-09-21 06:41:54 +00:00
fix: fixes a missing newline character in the autogenerated help and version messages in some instances
This commit is contained in:
parent
5b669ec520
commit
6aa4ba8114
2 changed files with 4 additions and 0 deletions
|
@ -498,6 +498,9 @@ impl<'a> Help<'a> {
|
|||
}
|
||||
try!(write!(self.writer, "{}", part));
|
||||
}
|
||||
} else if nlh || self.force_next_line {
|
||||
try!(write!(self.writer, "{}", help));
|
||||
try!(write!(self.writer, "\n"));
|
||||
} else {
|
||||
try!(write!(self.writer, "{}", help));
|
||||
}
|
||||
|
|
|
@ -288,6 +288,7 @@ USAGE:
|
|||
FLAGS:
|
||||
-h, --help
|
||||
Prints help information
|
||||
|
||||
-V, --version
|
||||
Prints version
|
||||
information";
|
||||
|
|
Loading…
Reference in a new issue