INNER CODE UNIT · JavaScript

setConfig

NerdLang/nerd · nerd.js:190

var setConfig = function()
{
  try
  {
    if(global.CLI.cli["--setauthor"]) CONFIG.author = global.CLI.cli["--setauthor"].argument;
    if(global.CLI.cli["--setid"]) CONFIG.id = global.CLI.cli["--setid"].argument;
    if(global.CLI.cli["--setkey"]) CONFIG.key = global.CLI.cli["--setkey"].argument;
    if(global.CLI.cli["--setapi"]) CONFIG.api = global.CLI.cli["--setapi"].argument;
    if(global.CLI.cli["--setport"]) CONFIG.port = parseInt(global.CLI.cli["--setport"].argument);
    //if(global.CLI.cli["--setsdk"]) CONFIG.sdk = global.CLI.cli["--setsdk"].argument.replace(/\\/g, "\\\\").replace(/:/g, "\\\:"); // for android 
    //if(global.CLI.cli["--setndk"]) CONFIG.ndk = global.CLI.cli["--setndk"].argument.replace(/\\/g, "\\\\").replace(/:/g, "\\\:"); // for android
    if(global.CLI.cli["--setwin_ucrt"]) CONFIG.win_ucrt = global.CLI.cli["--setwin_ucrt"].argument;
    if(global.CLI.cli["--setwin_inc_ucrt"]) CONFIG.win_inc_ucrt = global.CLI.cli["--setwin_inc_ucrt"].argument;
    if(global.CLI.cli["--setwin_lib_ucrt"]) CONFIG.win_lib_ucrt = global.CLI.cli["--setwin_lib_ucrt"].argument;
    if(global.CLI.cli["--setwin_lib_um"]) CONFIG.win_lib_um = global.CLI.cli["--setwin_lib_um"].argument;
    if(global.CLI.cli["--setxcode"]) CONFIG.xcode = global.CLI.cli["--setxcode"].argument;

	/*

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…