protected function printHelpText(array $command)
    {
        $shown = false;

        if (!empty($command['description'])) {
            $shown = true;
            $this->line($this->text($command['description']));
        }

        if (!empty($command['usage'])) {

            $shown = true;
            $this->line()->line($this->text('Usage:'));

            foreach ($command['usage'] as $usage) {
                $this->line($usage);
            }
        }

        if (!empty($command['options'])) {

            $shown = true;
            $this->line()->line($this->text('Options:'));

            foreach ($command['options'] as $name => $description) {
                $vars = array('@option' => $name, '@description' => $this->text($description));
                $this->line($this->text('  @option  @description', $vars));
            }
        }

        if (!$shown) {
            $this->line($this->text('No help found for the command'));
        }
    }
protected function printHelpText(array $command)
    {
        $shown = false;

        if (!empty($command['description'])) {
            $shown = true;
            $this->line($this->text($command['description']));
        }

        if (!empty($command['usage'])) {

            $shown = true;
            $this->line()->line($this->text('Usage:'));

            foreach ($command['usage'] as $usage) {
                $this->line($usage);
            }
        }

        if (!empty($command['options'])) {

            $shown = true;
            $this->line()->line($this->text('Options:'));

            foreach ($command['options'] as $name => $description) {
                $vars = array('@option' => $name, '@description' => $this->text($description));
                $this->line($this->text('  @option  @description', $vars));
            }
        }

        if (!$shown) {
            $this->line($this->text('No help found for the command'));
        }
    }
protected function printHelpText ( array $ command ) { $ shown = false ; if ( ! empty ( $ command [ 'description' ] ) ) { $ shown = true ; $ this -> line ( $ this -> text ( $ command [ 'description' ] ) ) ; } if ( ! empty ( $ command [ 'usage' ] ) ) { $ shown = true ; $ this -> line ( ) -> line ( $ this -> text ( 'Usage:' ) ) ; foreach ( $ command [ 'usage' ] as $ usage ) { $ this -> line ( $ usage ) ; } } if ( ! empty ( $ command [ 'options' ] ) ) { $ shown = true ; $ this -> line ( ) -> line ( $ this -> text ( 'Options:' ) ) ; foreach ( $ command [ 'options' ] as $ name => $ description ) { $ vars = array ( '@option' => $ name , '@description' => $ this -> text ( $ description ) ) ; $ this -> line ( $ this -> text ( '  @option  @description' , $ vars ) ) ; } } if ( ! $ shown ) { $ this -> line ( $ this -> text ( 'No help found for the command' ) ) ; } }
Print command help text
@param array $command
Print command help text