public function run( $args )
    {
        $this->command = $this->getCommand( $args );

        if ( NULL == $this->command )
        {
            throw new CommandException( 'Command: ' . $args[ 1 ] . ' not found' );
        }

        $this->processArgs( $this->command, $args );

        return $this->command->execute();
    }
public function run( $args )
    {
        $this->command = $this->getCommand( $args );

        if ( NULL == $this->command )
        {
            throw new CommandException( 'Command: ' . $args[ 1 ] . ' not found' );
        }

        $this->processArgs( $this->command, $args );

        return $this->command->execute();
    }
public function run ( $ args ) { $ this -> command = $ this -> getCommand ( $ args ) ; if ( NULL == $ this -> command ) { throw new CommandException ( 'Command: ' . $ args [ 1 ] . ' not found' ) ; } $ this -> processArgs ( $ this -> command , $ args ) ; return $ this -> command -> execute ( ) ; }
Runs the requested command.

@param array $args command line arguments

@return int status code

@throws CommandException in exceptional circumstances
Runs the requested command .