public function __construct($configFile, $cronLogsFile = null, $debug = false)
 {
     $this->purgeCronLogsFile();
     parent::__construct($configFile, tempnam(sys_get_temp_dir(), 'test_cronlogs'), false);
 }
            exit(help($argv[0]));
            break;
        case 'test':
            echo "Lauching test suite..." . PHP_EOL . PHP_EOL;
            include dirname(__FILE__) . '/../test/bin/prove.php';
            break;
        default:
            $configFile = file_exists($argValue) ? $argValue : false;
            break;
    }
}
if (!$configFile) {
    exit(help($argv[0]));
}
try {
    $farm = TwitterBotsFarm::create($configFile, $cronLogsFile, $debug, $forceUpdate);
    if (!is_null($botName)) {
        $farm->runBot($botName);
    } else {
        $farm->run();
    }
} catch (Exception $e) {
    exit(sprintf('Farm execution stopped with error: "%s"%s', $e->getMessage(), PHP_EOL));
}
function help($scriptName)
{
    $year = date('Y');
    return <<<EOF
©{$year} Nicolas Perriault - http://code.google.com/p/phptwitterbot

This executable runs a PHPTwitterBot farm from the command line, using a YAML