Skip to content

Commit ef5ea2b

Browse files
committed
refactor(command): use helper showUsage() instead
1 parent 1356515 commit ef5ea2b

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/Input/Command.php

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -343,12 +343,8 @@ public function showHelp()
343343

344344
$helper
345345
->showArgumentsHelp($this->allArguments())
346-
->showOptionsHelp($this->allOptions(), '', 'Legend: <required> [optional] variadic...');
347-
348-
if ($this->_usage) {
349-
$io->eol();
350-
$io->boldGreen('Usage Examples:', true)->colors($this->_usage)->eol();
351-
}
346+
->showOptionsHelp($this->allOptions(), '', 'Legend: <required> [optional] variadic...')
347+
->showUsage($this->_usage);
352348

353349
return $this->emit('_exit', 0);
354350
}

0 commit comments

Comments
 (0)