protected function showHelp($error = null)
    {
        if ($error !== null) {
            $this->showError($error);
        }

        $message = 'Available commands:';
        echo PHP_EOL.PHP_EOL.$message.PHP_EOL.$this->getFlags()->getDefaults().PHP_EOL;
        exit;
    }
protected function showHelp($error = null)
    {
        if ($error !== null) {
            $this->showError($error);
        }

        $message = 'Available commands:';
        echo PHP_EOL.PHP_EOL.$message.PHP_EOL.$this->getFlags()->getDefaults().PHP_EOL;
        exit;
    }
protected function showHelp ( $ error = null ) { if ( $ error !== null ) { $ this -> showError ( $ error ) ; } $ message = 'Available commands:' ; echo PHP_EOL . PHP_EOL . $ message . PHP_EOL . $ this -> getFlags ( ) -> getDefaults ( ) . PHP_EOL ; exit ; }
Shows help screen with available commands on demand or on error.

@param string $error The error to show additionally.

@author Benjamin Carl <opensource@clickalicious.de>
Shows help screen with available commands on demand or on error .