diff --git a/src/CliProgram/BaseCommand.php b/src/CliProgram/BaseCommand.php index 996e55b..5174d31 100644 --- a/src/CliProgram/BaseCommand.php +++ b/src/CliProgram/BaseCommand.php @@ -16,7 +16,12 @@ class BaseCommand extends Command { * @param string ...$aliases The command aliases */ public function __construct (?string $name = null, string ...$aliases) { - parent::__construct($name ?? (new ReflectionClass($this))->getShortName()); + if ($name === null) { + $classShortName = (new ReflectionClass($this))->getShortName(); + $name = mb_strtolower(mb_substr($classShortName, 0, 1)) . mb_substr($classShortName, 1); + } + + parent::__construct($name); $this->setAliases($aliases); } } \ No newline at end of file