From 99d6c86daa32235441f9cc62e9f9dd7f226b6315 Mon Sep 17 00:00:00 2001 From: Valentin Palkovic Date: Tue, 23 Jan 2024 17:37:37 +0100 Subject: [PATCH 1/2] CLI: Update CLI option descriptions --- code/lib/cli/src/generate.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/code/lib/cli/src/generate.ts b/code/lib/cli/src/generate.ts index a3175e5d0b54..5d520de529d6 100644 --- a/code/lib/cli/src/generate.ts +++ b/code/lib/cli/src/generate.ts @@ -34,12 +34,12 @@ const command = (name: string) => .command(name) .option( '--disable-telemetry', - 'disable sending telemetry data', + 'Disable sending telemetry data', // default value is false, but if the user sets STORYBOOK_DISABLE_TELEMETRY, it can be true process.env.STORYBOOK_DISABLE_TELEMETRY && process.env.STORYBOOK_DISABLE_TELEMETRY !== 'false' ) .option('--debug', 'Get more logs in debug mode', false) - .option('--enable-crash-reports', 'enable sending crash reports to telemetry data'); + .option('--enable-crash-reports', 'Enable sending crash reports to telemetry data'); command('init') .description('Initialize Storybook into your project.') @@ -47,7 +47,7 @@ command('init') .option('-s --skip-install', 'Skip installing deps') .option('--package-manager ', 'Force package manager for installing deps') .option('--use-pnp', 'Enable pnp mode for Yarn 2+') - .option('-p --parser ', 'jscodeshift parser') + .option('-p --parser ', 'Jscodeshift parser') .option('-t --type ', 'Add Storybook for a specific project type') .option('-y --yes', 'Answer yes to all prompts') .option('-b --builder ', 'Builder library') From 4f55efd85263415ef5a21373c6d77b75b3ce700a Mon Sep 17 00:00:00 2001 From: Valentin Palkovic Date: Tue, 23 Jan 2024 18:01:58 +0100 Subject: [PATCH 2/2] Update code/lib/cli/src/generate.ts --- code/lib/cli/src/generate.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/lib/cli/src/generate.ts b/code/lib/cli/src/generate.ts index 5d520de529d6..71ea9841fc64 100644 --- a/code/lib/cli/src/generate.ts +++ b/code/lib/cli/src/generate.ts @@ -47,7 +47,7 @@ command('init') .option('-s --skip-install', 'Skip installing deps') .option('--package-manager ', 'Force package manager for installing deps') .option('--use-pnp', 'Enable pnp mode for Yarn 2+') - .option('-p --parser ', 'Jscodeshift parser') + .option('-p --parser ', 'jscodeshift parser') .option('-t --type ', 'Add Storybook for a specific project type') .option('-y --yes', 'Answer yes to all prompts') .option('-b --builder ', 'Builder library')