public function setDefaultCommand($commandName, $isSingleCommand = false)
    {
        $this->defaultCommand = $commandName;

        if ($isSingleCommand) {
            // Ensure the command exist
            $this->find($commandName);

            $this->singleCommand = true;
        }

        return $this;
    }
public function setDefaultCommand($commandName, $isSingleCommand = false)
    {
        $this->defaultCommand = $commandName;

        if ($isSingleCommand) {
            // Ensure the command exist
            $this->find($commandName);

            $this->singleCommand = true;
        }

        return $this;
    }
public function setDefaultCommand ( $ commandName , $ isSingleCommand = false ) { $ this -> defaultCommand = $ commandName ; if ( $ isSingleCommand ) { // Ensure the command exist $ this -> find ( $ commandName ) ; $ this -> singleCommand = true ; } return $ this ; }
Sets the default Command name.

@param string $commandName     The Command name
@param bool   $isSingleCommand Set to true if there is only one command in this application

@return self
Sets the default Command name .