src/Argument/Summary.php
protected function prefixedArguments(Argument $argument)
    {
        $prefixes = [$argument->prefix(), $argument->longPrefix()];
        $summary  = [];

        foreach ($prefixes as $key => $prefix) {
            if (!$prefix) {
                continue;
            }

            $sub = str_repeat('-', $key + 1) . $prefix;

            if (!$argument->noValue()) {
                $sub .= " {$argument->name()}";
            }

            $summary[] = $sub;
        }

        return implode(', ', $summary);
    }
protected function prefixedArguments(Argument $argument)
    {
        $prefixes = [$argument->prefix(), $argument->longPrefix()];
        $summary  = [];

        foreach ($prefixes as $key => $prefix) {
            if (!$prefix) {
                continue;
            }

            $sub = str_repeat('-', $key + 1) . $prefix;

            if (!$argument->noValue()) {
                $sub .= " {$argument->name()}";
            }

            $summary[] = $sub;
        }

        return implode(', ', $summary);
    }
protected function prefixedArguments ( Argument $ argument ) { $ prefixes = [ $ argument -> prefix ( ) , $ argument -> longPrefix ( ) ] ; $ summary = [ ] ; foreach ( $ prefixes as $ key => $ prefix ) { if ( ! $ prefix ) { continue ; } $ sub = str_repeat ( '-' , $ key + 1 ) . $ prefix ; if ( ! $ argument -> noValue ( ) ) { $ sub .= " {$argument->name()}" ; } $ summary [ ] = $ sub ; } return implode ( ', ' , $ summary ) ; }
Builds the summary for any prefixed arguments

@param Argument $argument

@return string
Builds the summary for any prefixed arguments