src/Console/Option/Option.php
public function renderReadableSpec($renderHint = true)
    {
        $c1 = '';
        if ($this->short) {
            $c1 = '-' . $this->short;
        }

        if ($this->long) {
            if ($c1 !== '') {
                $c1 .= ', ';
            }

            $c1 .= '--' . $this->long;
        }

        if ($renderHint) {
            return $c1 . $this->renderValueHint();
        }

        return $c1;
    }
public function renderReadableSpec($renderHint = true)
    {
        $c1 = '';
        if ($this->short) {
            $c1 = '-' . $this->short;
        }

        if ($this->long) {
            if ($c1 !== '') {
                $c1 .= ', ';
            }

            $c1 .= '--' . $this->long;
        }

        if ($renderHint) {
            return $c1 . $this->renderValueHint();
        }

        return $c1;
    }
public function renderReadableSpec ( $ renderHint = true ) { $ c1 = '' ; if ( $ this -> short ) { $ c1 = '-' . $ this -> short ; } if ( $ this -> long ) { if ( $ c1 !== '' ) { $ c1 .= ', ' ; } $ c1 .= '--' . $ this -> long ; } if ( $ renderHint ) { return $ c1 . $ this -> renderValueHint ( ) ; } return $ c1 ; }
get readable spec for printing.

@param bool $renderHint render also value hint

@return string
get readable spec for printing .