public static function run(HelperSet $helperSet)
    {
        $application = new Application('Resque Console Tool', Version::VERSION);
        $application->setCatchExceptions(true);
        $application->setHelperSet($helperSet);

        $application->add(new QueueListCommand());
        $application->add(new QueueClearCommand());
        $application->add(new EnqueueCommand());
        $application->add(new WorkerCommand());

        return $application->run();
    }