original_string: 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();
      }
code: 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();
      }
code_tokens: 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 ( ) ; }
docstring: Runs console with the given helperset.
  
  @param HelperSet                                    $helperSet
  @param \Symfony\Component\Console\Command\Command[] $commands
  
  @return void
docstring_tokens: Runs console with the given helperset .