public static function run(HelperSet $helperSet, $commands = array())
    {
        $cli = new Application('PoolDBM Command Line Interface', Version::VERSION);
        $cli->setCatchExceptions(true);
        $cli->setHelperSet(new HelperSet($helperSet));
        self::addDefaultCommands($cli);
        $cli->addCommands($commands);
        $cli->run();
    }
public static function run(HelperSet $helperSet, $commands = array())
    {
        $cli = new Application('PoolDBM Command Line Interface', Version::VERSION);
        $cli->setCatchExceptions(true);
        $cli->setHelperSet(new HelperSet($helperSet));
        self::addDefaultCommands($cli);
        $cli->addCommands($commands);
        $cli->run();
    }
public static function run ( HelperSet $ helperSet , $ commands = array ( ) ) { $ cli = new Application ( 'PoolDBM Command Line Interface' , Version :: VERSION ) ; $ cli -> setCatchExceptions ( true ) ; $ cli -> setHelperSet ( new HelperSet ( $ helperSet ) ) ; self :: addDefaultCommands ( $ cli ) ; $ cli -> addCommands ( $ commands ) ; $ cli -> run ( ) ; }
Runs console with the given helperset.

@param HelperSet                                    $helperSet
@param \Symfony\Component\Console\Command\Command[] $commands

@return void
Runs console with the given helperset .