protected function renderActionHelp()
    {
        $action = $this->actions[$this->actionName];
        //puts name of action
        $this->appendLine($this->getColoredString($action->getDescription(), 'green'));
        $this->appendLine('');

        //puts usage hint
        $this->appendLine('Usage:');
        $this->appendLine($this->getColoredString(sprintf(
            '   %s %s [options]',
            $this->dispatcher->getParam('activeTask'),
            $this->dispatcher->getParam('activeAction')
        ), 'dark_gray'));
        $this->appendLine('');

        //puts available options
        $this->appendLine($this->getColoredString('Options:', 'gray'));
        foreach ($action->getOptions() as $option) {
            $this->appendLine($this->getColoredString(sprintf(
                '   --%s     -%s      %s',
                $option->getName(), $option->getShortName(), $option->getDescription()
            ), 'light_green'));
        }
    }
protected function renderActionHelp()
    {
        $action = $this->actions[$this->actionName];
        //puts name of action
        $this->appendLine($this->getColoredString($action->getDescription(), 'green'));
        $this->appendLine('');

        //puts usage hint
        $this->appendLine('Usage:');
        $this->appendLine($this->getColoredString(sprintf(
            '   %s %s [options]',
            $this->dispatcher->getParam('activeTask'),
            $this->dispatcher->getParam('activeAction')
        ), 'dark_gray'));
        $this->appendLine('');

        //puts available options
        $this->appendLine($this->getColoredString('Options:', 'gray'));
        foreach ($action->getOptions() as $option) {
            $this->appendLine($this->getColoredString(sprintf(
                '   --%s     -%s      %s',
                $option->getName(), $option->getShortName(), $option->getDescription()
            ), 'light_green'));
        }
    }
protected function renderActionHelp ( ) { $ action = $ this -> actions [ $ this -> actionName ] ; //puts name of action $ this -> appendLine ( $ this -> getColoredString ( $ action -> getDescription ( ) , 'green' ) ) ; $ this -> appendLine ( '' ) ; //puts usage hint $ this -> appendLine ( 'Usage:' ) ; $ this -> appendLine ( $ this -> getColoredString ( sprintf ( '   %s %s [options]' , $ this -> dispatcher -> getParam ( 'activeTask' ) , $ this -> dispatcher -> getParam ( 'activeAction' ) ) , 'dark_gray' ) ) ; $ this -> appendLine ( '' ) ; //puts available options $ this -> appendLine ( $ this -> getColoredString ( 'Options:' , 'gray' ) ) ; foreach ( $ action -> getOptions ( ) as $ option ) { $ this -> appendLine ( $ this -> getColoredString ( sprintf ( '   --%s     -%s      %s' , $ option -> getName ( ) , $ option -> getShortName ( ) , $ option -> getDescription ( ) ) , 'light_green' ) ) ; } }
Renders help for task action
Renders help for task action