command.description('Run tests with Playwright Test');
command.option('--browser <browser>',`Browser to use for tests, one of "all", "chromium", "firefox" or "webkit" (default: "chromium")`);
command.option('--headed',`Run tests in headed browsers (default: headless)`);
command.option('-c, --config <file>',`Configuration file, or a test directory with optional "${tsConfig}"/"${jsConfig}"`);
command.option('--forbid-only',`Fail if test.only is called (default: false)`);
command.option('-g, --grep <grep>',`Only run tests matching this regular expression (default: ".*")`);
command.option('--global-timeout <timeout>',`Maximum time this test suite can run in milliseconds (default: unlimited)`);
command.option('-j, --workers <workers>',`Number of concurrent workers, use 1 to run in a single worker (default: number of CPU cores / 2)`);
command.option('--list',`Collect all the tests and report them, but do not run`);
command.option('--max-failures <N>',`Stop after the first N failures`);
command.option('--output <dir>',`Folder for output artifacts (default: "test-results")`);
command.option('--quiet',`Suppress stdio`);
command.option('--repeat-each <N>',`Run each test N times (default: 1)`);
command.option('--reporter <reporter>',`Reporter to use, comma-separated, can be ${builtinReporters.map(name=>`"${name}"`).join(', ')} (default: "${defaultReporter}")`);
command.option('--retries <retries>',`Maximum retry count for flaky tests, zero for no retries (default: no retries)`);
command.option('--shard <shard>',`Shard tests and execute only the selected shard, specify in the form "current/all", 1-based, for example "3/5"`);
command.option('--project <project-name>',`Only run tests from the specified project (default: run all projects)`);
command.option('--timeout <timeout>',`Specify test timeout threshold in milliseconds, zero for unlimited (default: ${defaultTimeout})`);
command.option('-u, --update-snapshots',`Update snapshots with actual results (default: only create missing snapshots)`);
command.option('-x',`Stop after the first failure`);