docs: sync README CLI help output with actual CLI - #984
Conversation
The help text in the README had drifted from the actual CLI: - add missing --log-level option to the main command help - add missing generate options: --config-file, --chunk-size, --index, --minify, --type-map, and the updated -t/--target description (including sitemap, web, and custom generator specifiers) - make --ignore a required variadic glob argument - drop stale hardcoded defaults for --threads, --version, --changelog, and --git-ref, which are now resolved via configuration
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
PR SummaryLow Risk Overview
Reviewed by Cursor Bugbot for commit 1792f92. Bugbot is set up for automated code reviews on this repo. Configure here. |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #984 +/- ##
=======================================
Coverage 89.12% 89.12%
=======================================
Files 196 196
Lines 18083 18083
Branches 1667 1667
=======================================
Hits 16116 16116
Misses 1960 1960
Partials 7 7 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Pull request overview
This PR updates the README’s embedded CLI --help output so it reflects the current @node-core/doc-kit CLI options and generate subcommand flags, reducing documentation drift for end users.
Changes:
- Adds the missing top-level
--log-leveloption to the README help snippet. - Updates
generate --helpoutput in the README with newly supported options (--config-file,--chunk-size,--index,--minify,--type-map) and an updated--targetdescription (includingsitemap,web, and custom generator specifiers). - Adjusts
--ignoreto be shown as a required variadic glob argument and removes stale hardcoded defaults for several options.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
--git-ref was defined without an argument, so commander treated it as a boolean flag: passing a ref errored with 'too many arguments', and the bare flag set ref to true, breaking the ref/repository URL templates which expect a string. Define it as --git-ref <ref> and re-sync the README help output.
The help text in the README had drifted from the actual CLI:
Description
Validation
Related Issues
Check List
node --run testand all tests passed.node --run format:check&node --run lint.