Classes/Console/Mvc/Cli/Symfony/Descriptor/TextDescriptor.php
protected function describeInputOption(InputOption $option, array $options = [])
    {
        $totalWidth = $options['total_width'] ?? $this->calculateTotalWidthForOptions([$option]);
        // + 4 = 2 spaces before <info>, 2 spaces after </info>
        $indent = $totalWidth + 4;

        if ($option->acceptValue() && null !== $option->getDefault() && (!is_array($option->getDefault()) || count($option->getDefault()))) {
            $default = "\n" . str_repeat(' ', $indent) . sprintf('<comment> • [default: %s]</comment>', $this->formatDefaultValue($option->getDefault()));
        } else {
            $default = '';
        }

        $value = '';
        if ($option->acceptValue()) {
            $value = '=' . strtoupper($option->getName());

            if ($option->isValueOptional()) {
                $value = '[' . $value . ']';
            }
        }

        $synopsis = sprintf(
            '%s%s',
            $option->getShortcut() ? sprintf('-%s, ', $option->getShortcut()) : '    ',
            sprintf('--%s%s', $option->getName(), $value)
        );

        $spacingWidth = $totalWidth - Helper::strlen($synopsis);
        $maxWidth = isset($options['screen_width']) ? ($options['screen_width'] - $indent) : null;
        $this->writeText(sprintf(
            '  <info>%s</info>  %s%s%s%s',
            $synopsis,
            str_repeat(' ', $spacingWidth),
            $this->wordWrap($option->getDescription(), $indent, $maxWidth),
            $default,
            $option->isArray() ? "\n" . str_repeat(' ', $indent) . '<comment> • (can be specified multiple times)</comment>' : ''
        ), $options);
    }
protected function describeInputOption(InputOption $option, array $options = [])
    {
        $totalWidth = $options['total_width'] ?? $this->calculateTotalWidthForOptions([$option]);
        // + 4 = 2 spaces before <info>, 2 spaces after </info>
        $indent = $totalWidth + 4;

        if ($option->acceptValue() && null !== $option->getDefault() && (!is_array($option->getDefault()) || count($option->getDefault()))) {
            $default = "\n" . str_repeat(' ', $indent) . sprintf('<comment> • [default: %s]</comment>', $this->formatDefaultValue($option->getDefault()));
        } else {
            $default = '';
        }

        $value = '';
        if ($option->acceptValue()) {
            $value = '=' . strtoupper($option->getName());

            if ($option->isValueOptional()) {
                $value = '[' . $value . ']';
            }
        }

        $synopsis = sprintf(
            '%s%s',
            $option->getShortcut() ? sprintf('-%s, ', $option->getShortcut()) : '    ',
            sprintf('--%s%s', $option->getName(), $value)
        );

        $spacingWidth = $totalWidth - Helper::strlen($synopsis);
        $maxWidth = isset($options['screen_width']) ? ($options['screen_width'] - $indent) : null;
        $this->writeText(sprintf(
            '  <info>%s</info>  %s%s%s%s',
            $synopsis,
            str_repeat(' ', $spacingWidth),
            $this->wordWrap($option->getDescription(), $indent, $maxWidth),
            $default,
            $option->isArray() ? "\n" . str_repeat(' ', $indent) . '<comment> • (can be specified multiple times)</comment>' : ''
        ), $options);
    }
{@inheritdoc}