echo "--siteconfig : set up site variables\n"; echo "--account : create an account with admin privileges\n"; echo "--sql : generate db content from your world tables\n"; echo "--build : create server specific files\n"; echo "--sync=<tabelList,> : regenerate tables/files that depend on given world-table\n"; echo "--update : apply new sql updates fetched from github\n"; echo "--firstrun : goes through the nessecary hoops of the initial setup. Can be interrupted and --resume'd\n"; echo "additional options\n"; echo "--log logfile : write ouput to file\n"; echo "--locales=<regionCodes,> : limit setup to enUS, frFR, deDE, esES and/or ruRU (does not override config settings)\n"; echo "--mpqDataDir=path/ : manually point to directory with extracted mpq files; is limited to setup/ (default: setup/mpqData/)\n"; echo "--delete | -d : delete generated dbc_* tables when script finishes\n"; echo "--help | -h : contextual help\n"; die("\n"); } else { CLISetup::init(); } $cmd = array_pop(array_keys($opt)); $s = []; $b = []; switch ($cmd) { case 'firstrun': case 'resume': require_once 'setup/tools/clisetup/firstrun.func.php'; firstrun($cmd == 'resume'); finish(); case 'account': case 'dbconfig': case 'siteconfig': case 'sql': case 'build':