INNER CODE UNIT · JavaScript

browser

sebastiancarlos/beachpatrol · beachmsg.js:215

    browser = process.argv[++i];
  } else if (process.argv[i] === "--profile") {
    profileName = process.argv[++i];
  } else if (process.argv[i] === "--incognito") {
    incognito = true;
  } else {
    // Everything from here on is the command and its args.
    break;
  }
  i++;
}

// extract command and args
const [commandName, ...args] = process.argv.slice(i);

// if there are no arguments, bail out
if (!commandName) {
  console.error("Error: No command specified.");

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…