Skip to content

Commit

Permalink
Fix spacing on documentation output
Browse files Browse the repository at this point in the history
  • Loading branch information
g105b committed Apr 17, 2019
1 parent b19619a commit a556556
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Command/Command.php
Original file line number Diff line number Diff line change
Expand Up @@ -147,13 +147,17 @@ public function getUsage(bool $includeDocumentation = false):string {
}
else {
$keyParts = explode("|", $key);
$message .= str_repeat(" ", 2);
if(isset($keyParts[1])) {
$message .= str_repeat(" ", 2);
$message .= $keyParts[1];
$message .= ", ";
}

$message .= $keyParts[0];
if(!isset($keyParts[1])) {
$message .= str_repeat(" ", 4);
}

$message .= "\t\t";
$message .= $wrappedDocs;

Expand Down

0 comments on commit a556556

Please sign in to comment.