From de869c188a0e4a8804f293f879bb3b8f71ae9f43 Mon Sep 17 00:00:00 2001 From: bracesproul Date: Thu, 20 Mar 2025 12:04:03 -0700 Subject: [PATCH] caps y --- README.md | 10 +++++----- src/index.ts | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 03c152b..e38fb34 100644 --- a/README.md +++ b/README.md @@ -13,8 +13,8 @@ This will clone a frontend chat application (Next.js or Vite), along with up to The quickest way to get started is to pass flags to the CLI, instead of going through the prompts: ```bash -# Pass `-y` to accept all default values -npx create-agent-chat-app@latest -y +# Pass `-Y`/`--yes` to accept all default values +npx create-agent-chat-app@latest -Y ``` You can also pass individual flags. Here are all of the options the CLI accepts, and their default values: @@ -30,7 +30,7 @@ Create an agent chat app with one command Options: -V, --version output the version number - -y, --yes Skip all prompts and use default values + -Y, --yes Skip all prompts and use default values --project-name Name of the project (default: "agent-chat-app") --package-manager Package manager to use (npm, pnpm, yarn) (default: "yarn") --install-deps Automatically install dependencies (default: "true") @@ -39,10 +39,10 @@ Options: -h, --help display help for command ``` -If you want to pass some flags, and use the defaults for the rest, simply add `-y`/`--yes`, in addition to the flags you want to pass: +If you want to pass some flags, and use the defaults for the rest, simply add `-Y`/`--yes`, in addition to the flags you want to pass: ```bash -npx create-agent-chat-app@latest -y --package-manager pnpm +npx create-agent-chat-app@latest -Y --package-manager pnpm ``` This will accept all default values, except for the package manager, which will be set to `pnpm`. diff --git a/src/index.ts b/src/index.ts index 9292802..5840700 100644 --- a/src/index.ts +++ b/src/index.ts @@ -513,7 +513,7 @@ async function parseCommandLineArgs(): Promise> { .name("create-agent-chat-app") .description("Create an agent chat app with one command") .version(VERSION) - .option("-y, --yes", "Skip all prompts and use default values") + .option("-Y, --yes", "Skip all prompts and use default values") .option("--project-name ", "Name of the project", "agent-chat-app") .option( "--package-manager ", @@ -541,7 +541,7 @@ async function parseCommandLineArgs(): Promise> { const result: Partial = {}; - // If -y or --yes flag is provided, use all defaults + // If -Y or --yes flag is provided, use all defaults if (options.yes) { return { projectName: options.projectName ?? "agent-chat-app",