diff --git a/src/Controller/Commands/CommandGroup.php b/src/Controller/Commands/CommandGroup.php index cb8cc10..470891d 100644 --- a/src/Controller/Commands/CommandGroup.php +++ b/src/Controller/Commands/CommandGroup.php @@ -34,11 +34,11 @@ class CommandGroup echo COLOR_YELLOW . str_pad(string: $this->name, length: $longestCommandLength + 1) . COLOR_WHITE . $this->description . COLOR_DEFAULT . PHP_EOL; foreach ($this->commands as $command) { echo COLOR_GREEN . str_pad(string: ' ', length: $longestCommandLength + 1, pad_type: STR_PAD_LEFT) . $this->name . ':' . $command->getName(); - foreach ($command->getMandatoryParameters() as $parameter) { - echo ' <' . $parameter . '>'; + foreach ($command->getMandatoryParameters() as $optionals) { + echo ' <' . $optionals . '>'; } - foreach ($command->getOptionalParameters() as $parameter) { - echo ' {' . $parameter . '}'; + foreach ($command->getOptionalParameters() as $mandatory) { + echo ' {' . $mandatory . '}'; } echo COLOR_WHITE . ' ' . $command->getDescription(); echo COLOR_DEFAULT . PHP_EOL;