Skip to content

docs(cli): list codegraph files without a path argument - #3275

Open
reynoldsalec wants to merge 1 commit into
colbymchenry:mainfrom
reynoldsalec:docs-cli-files-path-option
Open

reynoldsalec wants to merge 1 commit into
colbymchenry:mainfrom
reynoldsalec:docs-cli-files-path-option

Conversation

@reynoldsalec

Copy link
Copy Markdown

The CLI reference and the README list codegraph files [path], but files takes no positional argument. It reads the project path from -p, --path (codegraph.ts), and commander 14 rejects extra arguments, so codegraph files src exits 1 with error: too many arguments for 'files'. Expected 0 arguments but got 1. (To list one folder it's --filter src.)

This drops [path] from both lines and adds --path to their option lists. The rest of each option list is unchanged, so the README keeps --tests and the site keeps --pattern.

Checks: reproduced the error with commander 14.0.3 (the locked version) and the same files definition, which is unchanged in v1.6.2.

Found this running a readability benchmark for our Docs For Agents site, LMK if you want me to put up a bigger PR with the rest of the updates or if you'd be interested in a SaturnDocs subscription, can hook you up through our open source program.

This branch has not been deployed

No deployments
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.

1 participant