src/Console/Option/OptionPrinter.php
public function renderOption(Option $opt): string
    {
        $columns = [];
        if ($opt->short) {
            $columns[] = $this->formatter->format('-' . $opt->short, 'strong_white')
                . $this->renderOptionValueHint($opt, false);
        }
        if ($opt->long) {
            $columns[] = $this->formatter->format('--' . $opt->long, 'strong_white')
                . $this->renderOptionValueHint($opt, true);
        }

        return implode(', ', $columns);
    }
public function renderOption(Option $opt): string
    {
        $columns = [];
        if ($opt->short) {
            $columns[] = $this->formatter->format('-' . $opt->short, 'strong_white')
                . $this->renderOptionValueHint($opt, false);
        }
        if ($opt->long) {
            $columns[] = $this->formatter->format('--' . $opt->long, 'strong_white')
                . $this->renderOptionValueHint($opt, true);
        }

        return implode(', ', $columns);
    }
public function renderOption ( Option $ opt ) : string { $ columns = [ ] ; if ( $ opt -> short ) { $ columns [ ] = $ this -> formatter -> format ( '-' . $ opt -> short , 'strong_white' ) . $ this -> renderOptionValueHint ( $ opt , false ) ; } if ( $ opt -> long ) { $ columns [ ] = $ this -> formatter -> format ( '--' . $ opt -> long , 'strong_white' ) . $ this -> renderOptionValueHint ( $ opt , true ) ; } return implode ( ', ' , $ columns ) ; }
Render readable spec

@param Option $opt

@return string
Render readable spec