Skip to content

Commit 22864bb

Browse files
committed
Make sure there is a dot at the end of the description
1 parent b72749b commit 22864bb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Commands/Help.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,10 @@ protected function showCommand(string $commandName) : void
7979
$lastKey = \array_key_last($newOptions);
8080
foreach ($newOptions as $option => $description) {
8181
CLI::write(' ' . $this->setColor($option));
82+
$description = \trim($description);
83+
if (!\str_ends_with($description, '.')) {
84+
$description .= '.';
85+
}
8286
CLI::write(' ' . $description);
8387
if ($option !== $lastKey) {
8488
CLI::newLine();

0 commit comments

Comments
 (0)