本文整理匯總了PHP中CLISetup::init方法的典型用法代碼示例。如果您正苦於以下問題:PHP CLISetup::init方法的具體用法?PHP CLISetup::init怎麽用?PHP CLISetup::init使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類CLISetup
的用法示例。
在下文中一共展示了CLISetup::init方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: ruRU
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':