diff --git a/src/Commands/help/HelpCLIFormatter.php b/src/Commands/help/HelpCLIFormatter.php index 3c63fc1e92..f54fcbc890 100644 --- a/src/Commands/help/HelpCLIFormatter.php +++ b/src/Commands/help/HelpCLIFormatter.php @@ -136,11 +136,18 @@ public static function formatArgumentName($argument) protected function cleanOptions(&$data): void { + if (array_key_exists('options', $data)) { foreach ($data['options'] as $key => $option) { + // Remove global options. if (self::isGlobalOption($key)) { unset($data['options'][$key]); } + + // Populate missing props. + if ($key == 'desciption' && !isset($option[$key])) { + $option[$key] = ''; + } } } }