From c4dae2a628fa17d1b9a7478dfeecb636de286148 Mon Sep 17 00:00:00 2001 From: Dmitry Gozman Date: Mon, 25 Jul 2022 09:16:20 -0700 Subject: [PATCH] fix(cli): remove --save-trace from open command (#15905) --- packages/playwright-core/src/cli/cli.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/playwright-core/src/cli/cli.ts b/packages/playwright-core/src/cli/cli.ts index b5a4cc7320..ff672f2a42 100755 --- a/packages/playwright-core/src/cli/cli.ts +++ b/packages/playwright-core/src/cli/cli.ts @@ -63,12 +63,14 @@ commandWithOpenOptions('open [url]', 'open page in browser specified via -b, --b .addHelpText('afterAll', ` Examples: - $ open $ open -b webkit https://example.com`); + $ open + $ open -b webkit https://example.com`); commandWithOpenOptions('codegen [url]', 'open page and generate code for user actions', [ ['-o, --output ', 'saves the generated script to a file'], ['--target ', `language to generate, one of javascript, test, python, python-async, pytest, csharp, java`, language()], + ['--save-trace ', 'record a trace for the session and save it to a file'], ]).action(function(url, options) { codegen(options, url, options.target, options.output).catch(logErrorAndExit); }).addHelpText('afterAll', ` @@ -674,7 +676,6 @@ function commandWithOpenOptions(command: string, description: string, options: a .option('--save-har ', 'save HAR file with all network activity at the end') .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('--save-trace ', 'record a trace for the session and save it to a file') .option('--timezone