diff --git a/src/cli.ts b/src/cli.ts index 278d6b9..0c048de 100644 --- a/src/cli.ts +++ b/src/cli.ts @@ -24,7 +24,7 @@ program .name('create-playwright') .description('Getting started with writing end-to-end tests with Playwright.') .argument('[rootDir]', 'Target directory for the Playwright project', '.') - .option('--browser ', 'browsers to use in default config', ['chromium', 'firefox', 'webkit']) + .option('--browser ', `browsers to use in default config (default: 'chromium,firefox,webkit')`) .option('--no-browsers', 'do not download browsers (can be done manually via \'npx playwright install\')') .option('--no-examples', 'do not create example test files') .option('--install-deps', 'install dependencies') @@ -33,7 +33,7 @@ program .option('--ct', 'install Playwright Component testing') .option('--quiet', 'do not ask for interactive input prompts') .option('--gha', 'install GitHub Actions') - .option('--lang ', 'language to use (js, TypeScript)', 'TypeScript') + .option('--lang ', 'language to use (js, TypeScript)') .action(async (rootDir, options) => { const cliOptions: CliOptions = { diff --git a/src/generator.ts b/src/generator.ts index 178d37e..ffd4643 100644 --- a/src/generator.ts +++ b/src/generator.ts @@ -35,8 +35,8 @@ export type PromptOptions = { const assetsDir = path.join(__dirname, '..', 'assets'); export type CliOptions = { - lang: string; - browser: string[]; + lang?: string; + browser?: string[]; noBrowsers?: boolean; noExamples?: boolean; installDeps?: boolean;