Skip to content

fix: reject unsupported --persist-to in cf dev - #265

Merged
petebacondarwin merged 1 commit into
mainfrom
codex/fix-22-dev-persist-to
Oct 12, 2026
Merged

petebacondarwin merged 1 commit into
mainfrom
codex/fix-22-dev-persist-to

Conversation

@petebacondarwin

Copy link
Copy Markdown
Collaborator

cf dev --persist-to <dir> previously ignored the option because the dev command disables camel-case expansion. The global validation now recognizes both option representations and reports that persistence overrides are unsupported before project setup or dev-server startup. Help remains available with the option present.

Includes regression coverage for option ordering, --persist-to=<dir>, empty values, and both help flags, plus a patch changeset.

Fixes #22.

Validation:

  • pnpm check
  • 55 focused tests passed for local flags and the dev command
  • Compiled CLI smoke tests confirmed the unsupported-option error and successful help output

@petebacondarwin
petebacondarwin requested a review from a team as a code owner October 12, 2026 11:53
@pkg-pr-new

pkg-pr-new Bot commented Oct 12, 2026

Copy link
Copy Markdown
npm i https://pkg.pr.new/cf@265

commit: 4810645

@ask-bonk

ask-bonk Bot commented Oct 12, 2026

Copy link
Copy Markdown
Contributor

LGTM

github run

@github-actions

Copy link
Copy Markdown
Contributor

cf --help startup

mean stddev min max
PR 168.4 ms 5.0 ms 160.4 ms 177.8 ms
base 167.1 ms 3.6 ms 160.2 ms 177.6 ms

Δ (PR vs base): ↑ +1.4 ms (+0.8%)

Measured with hyperfine on ubuntu-latest (3 warmup runs, 20 timed runs). CI numbers carry ±a few ms of runner jitter; treat small deltas as noise.

@petebacondarwin
petebacondarwin added this pull request to the merge queue Oct 12, 2026
Merged via the queue into main with commit a71dd9b Oct 12, 2026
12 checks passed
@petebacondarwin
petebacondarwin deleted the codex/fix-22-dev-persist-to branch October 12, 2026 12:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

cf dev silently ignores --persist-to

2 participants