public function enableHelp(string $description = null, string $footer = null, string $name = null) : void
    {
        $this->name = $name;
        $this->description = $description;
        $this->footer = $footer;
        $this->helpEnabled = true;
        $this->addOption(['name' => 'help', 'short_name' => 'h', 'help' => "display this help message"]);
        foreach($this->commands as $command) {
            $this->addOption(['name' => 'help', 'help' => 'display this help message', 'command' => $command['name']]);
        }
    }
public function enableHelp(string $description = null, string $footer = null, string $name = null) : void
    {
        $this->name = $name;
        $this->description = $description;
        $this->footer = $footer;
        $this->helpEnabled = true;
        $this->addOption(['name' => 'help', 'short_name' => 'h', 'help' => "display this help message"]);
        foreach($this->commands as $command) {
            $this->addOption(['name' => 'help', 'help' => 'display this help message', 'command' => $command['name']]);
        }
    }
public function enableHelp ( string $ description = null , string $ footer = null , string $ name = null ) : void { $ this -> name = $ name ; $ this -> description = $ description ; $ this -> footer = $ footer ; $ this -> helpEnabled = true ; $ this -> addOption ( [ 'name' => 'help' , 'short_name' => 'h' , 'help' => "display this help message" ] ) ; foreach ( $ this -> commands as $ command ) { $ this -> addOption ( [ 'name' => 'help' , 'help' => 'display this help message' , 'command' => $ command [ 'name' ] ] ) ; } }
Enables help messages so they show automatically.
This method also allows you to optionally pass the name of the application, a description header for the help
message and a footer.

@param string $name The name of the application binary
@param string $description A description to be displayed on top of the help message
@param string $footer A footer message to be displayed after the help message

@throws InvalidArgumentDescriptionException
@throws OptionExistsException
@throws UnknownCommandException
Enables help messages so they show automatically . This method also allows you to optionally pass the name of the application a description header for the help message and a footer .