fix: fixes a missing newline character in the autogenerated help and version messages in some instances

This commit is contained in:
Kevin K 2017-04-05 10:41:10 -04:00
parent 5b669ec520
commit 6aa4ba8114
2 changed files with 4 additions and 0 deletions

View file

@ -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));
}

View file

@ -288,6 +288,7 @@ USAGE:
FLAGS:
-h, --help
Prints help information
-V, --version
Prints version
information";