public function getSynopsis($short = false)
    {
        $key = $short ? 'short' : 'long';

        if (!isset($this->synopsis[$key])) {
            $this->synopsis[$key] = trim(sprintf('%s %s', $this->name, $this->definition->getSynopsis($short)));
        }

        return $this->synopsis[$key];
    }
public function getSynopsis($short = false)
    {
        $key = $short ? 'short' : 'long';

        if (!isset($this->synopsis[$key])) {
            $this->synopsis[$key] = trim(sprintf('%s %s', $this->name, $this->definition->getSynopsis($short)));
        }

        return $this->synopsis[$key];
    }
public function getSynopsis ( $ short = false ) { $ key = $ short ? 'short' : 'long' ; if ( ! isset ( $ this -> synopsis [ $ key ] ) ) { $ this -> synopsis [ $ key ] = trim ( sprintf ( '%s %s' , $ this -> name , $ this -> definition -> getSynopsis ( $ short ) ) ) ; } return $ this -> synopsis [ $ key ] ; }
Returns the synopsis for the command.

@param bool $short Whether to show the short version of the synopsis (with options folded) or not

@return string The synopsis
Returns the synopsis for the command .