Skip to content

Commit

Permalink
Remove trailing whitespace if there is no pod to add
Browse files Browse the repository at this point in the history
  • Loading branch information
lizmat committed Oct 12, 2018
1 parent b781479 commit 7d02b94
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/Main.pm6
Expand Up @@ -231,8 +231,8 @@ my sub RUN-MAIN(&main, $mainline, :$in-as-argsfiles) {
$docs = '-- ' ~ $sub.WHY.contents
}
my $msg = $no-named-after
?? join(' ', $prog-name, @required-named, @optional-named, @positional, $docs // '')
!! join(' ', $prog-name, @positional, @required-named, @optional-named, $docs // '');
?? join(' ', $prog-name, @required-named, @optional-named, @positional, ($docs if $docs))
!! join(' ', $prog-name, @positional, @required-named, @optional-named, ($docs if $docs));
@help-msgs.push($msg);
}

Expand Down

0 comments on commit 7d02b94

Please sign in to comment.