2085: Don't print spaces in long help r=pksunkara a=knightpp



Co-authored-by: Danil Kondratiev <knightpp@protonmail.com>
This commit is contained in:
bors[bot] 2020-08-20 17:42:58 +00:00 committed by GitHub
commit 8454136126
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 21 additions and 18 deletions

View file

@ -353,7 +353,10 @@ impl<'help, 'app, 'parser, 'writer> Help<'help, 'app, 'parser, 'writer> {
&& h_w > (self.term_w - taken); && h_w > (self.term_w - taken);
debug!("Help::val: Has switch..."); debug!("Help::val: Has switch...");
if arg.has_switch() { if self.use_long {
// long help prints messages on the next line so it don't need to align text
debug!("Help::val: printing long help so skip aligment");
} else if arg.has_switch() {
debug!("Yes"); debug!("Yes");
debug!("Help::val: force_next_line...{:?}", self.force_next_line); debug!("Help::val: force_next_line...{:?}", self.force_next_line);
debug!("Help::val: nlh...{:?}", nlh); debug!("Help::val: nlh...{:?}", nlh);