: regenerate tables/files that depend on given world-table\n"; // echo "--firstrun : goes through the nessecary hoops of the initial setup. Can be interrupted and --resume'd"; echo "additional options\n"; echo "--log logfile : write ouput to file\n"; echo "--locales= : 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 (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($scriptOpt)); switch ($cmd) // we accept only one main parameter { case 'account': case 'dbconfig': case 'siteconfig': case 'sql': case 'build': require_once 'setup/tools/clisetup/'.$cmd.'.func.php'; $cmd(); finish(); case 'sync': require_once 'setup/tools/clisetup/sql.func.php'; require_once 'setup/tools/clisetup/build.func.php'; sql(); build(); finish(); } ?>