chore(CLI): let other langs specify exec name (#6719)

This commit is contained in:
Anže Vodovnik 2021-05-25 16:49:24 +02:00 committed by GitHub
parent 39a8abd9ab
commit 01d8f87923
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -38,7 +38,7 @@ import { allBrowserNames } from '../utils/registry';
program
.version('Version ' + require('../../package.json').version)
.name('npx playwright');
.name(process.env.PW_CLI_NAME || 'npx playwright');
commandWithOpenOptions('open [url]', 'open page in browser specified via -b, --browser', [])
.action(function(url, command) {