Skip to content

Commit

Permalink
[C3] fix: add missing pre-existing type and --existing-script to …
Browse files Browse the repository at this point in the history
…help message (#5944)
  • Loading branch information
dario-piotrowicz authored Jun 17, 2024
1 parent 6a5979c commit cfa7de5
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/tiny-cameras-tease.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"create-cloudflare": patch
---

fix: add missing `pre-existing` type and `--existing-script` to help message
8 changes: 6 additions & 2 deletions packages/create-cloudflare/src/helpers/args.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,11 @@ const cliDefinition: ArgumentsDefinition = {
name: "openapi",
description: "A Worker implementing an OpenAPI REST endpoint.",
},
{
name: "pre-existing",
description:
"Fetch a Worker initialized from the Cloudflare dashboard.",
},
],
},
{
Expand Down Expand Up @@ -146,13 +151,12 @@ const cliDefinition: ArgumentsDefinition = {
},
{
name: "existing-script",
description: `The name of an existing Cloudflare Workers script to clone locally.
description: `The name of an existing Cloudflare Workers script to clone locally (when using this option "--type" is coerced to "pre-existing").
When "--existing-script" is specified, "deploy" will be ignored.
`,
type: "string",
requiresArg: true,
hidden: true,
},
{
name: "template",
Expand Down

0 comments on commit cfa7de5

Please sign in to comment.