docs: remove stray -- from fresh-backend dev commands#3140
Closed
baozhoutao wants to merge 1 commit into
Closed
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
pnpm passes the -- separator through to the script verbatim, so `pnpm dev -- --fresh -p <port>` reaches the CLI as positional args and exits with "Unexpected arguments" before binding the port. Drop the -- from all documented commands and fix the AGENTS.md note that claimed flags after -- are forwarded. Fixes #2801 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The documented fresh-backend command
pnpm dev -- --fresh -p <port>fails: pnpm passes the--separator through to the script verbatim, so the CLI receivesobjectstack dev --seed-admin -- --fresh -p <port>, treats everything after--as positional arguments, and exits withUnexpected arguments: -p, <port>(exit code 2) before binding the port.This PR removes the stray
--from every documented occurrence (6 commands across 4 files) and fixes the AGENTS.md note that claimed "flags after--are forwarded" — that claim was the root cause of the wrong examples.dev:crmexample, multi-agent discipline §8Verification
--: reproduced — CLI prints usage and exits 2 (matches the issue's 2/2 failures).--:pnpm --filter @objectstack/example-showcase dev --fresh -p 38423boots a fresh backend;/api/v1/healthreturns 200. Server torn down after verification.grep -rn -- '-- --fresh'over AGENTS.md, content/, docs/ returns no matches.Docs-only change; no CLI or runtime behavior touched.
Fixes #2801
🤖 Generated with Claude Code