# NOTE: This patch file is generated automatically and is not used, it is only for documentation. The driver is actually patched using [patchright_driver_patch](https://github.com/Kaliiiiiiiiii-Vinyzu/patchright/blob/main/patchright_driver_patch.ts), see [the workflow](https://github.com/Kaliiiiiiiiii-Vinyzu/patchright/blob/main/.github/workflows/patch_file_updater.yml) diff -ruN -x protocol.yml --minimal playwright/node_modules/playwright-core/src/cli/program.ts patchright/node_modules/playwright-core/src/cli/program.ts --- +++ @@ -1,21 +1,3 @@ -/** - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -/* eslint-disable no-console */ - import '../bootstrap'; import { gracefullyProcessExitDoNotHang, getPackageManagerExecCommand } from '../utils'; import { addTraceCommands } from '../tools/trace/traceCli'; @@ -69,10 +51,10 @@ program .command('install [browser...]') - .description('ensure browsers necessary for this version of Playwright are installed') + .description('ensure browsers necessary for this version of Patchright are installed') .option('--with-deps', 'install system dependencies for browsers') .option('--dry-run', 'do not execute installation, only print information') - .option('--list', 'prints list of browsers from all playwright installations') + .option('--list', 'prints list of browsers from all patchright installations') .option('--force', 'force reinstall of already installed browsers') .option('--only-shell', 'only install headless shell when installing chromium') .option('--no-shell', 'do not install chromium headless shell') @@ -95,8 +77,8 @@ program .command('uninstall') - .description('Removes browsers used by this installation of Playwright from the system (chromium, firefox, webkit, ffmpeg). This does not include branded channels.') - .option('--all', 'Removes all browsers used by any Playwright installation from the system.') + .description('Removes browsers used by this installation of Patchright from the system (chromium, firefox, webkit, ffmpeg). This does not include branded channels.') + .option('--all', 'Removes all browsers used by any Patchright installation from the system.') .action(async (options: { all?: boolean }) => { const { uninstallBrowsers } = await import('./installActions'); uninstallBrowsers(options).catch(logErrorAndExit); @@ -284,7 +266,7 @@ .option('--save-har-glob ', 'filter entries in the HAR by matching url against this glob pattern') .option('--save-storage ', 'save context storage state at the end, for later use with --load-storage') .option('--timezone