Repository navigation
Generate CLI help with argsclopts layout and wrapping - #271
Merged
Merged
Conversation
There was a problem hiding this comment.
🔵 Needs a closer look
The required argsclopts 1.1.1 release returned E404, leaving validation dependent on an unpublished local implementation until a human confirms availability and tests the published package.
No open issues 🎉
What changed in this PR
Replaces hand-maintained CLI option help with shared metadata and argsclopts formatting, while leaving the custom argument parser unchanged.
Changes:
- Generates command-specific option lists with 79-column wrapping and aligned descriptions.
- Documents color modes, preserves examples and stream-based output, and updates repository links.
- Adds 32 parser/help regression tests and requires
argsclopts@^1.1.1; validation against the published package remains pending per the PR description.
| File | Description |
|---|---|
test/parse-cli-args.js |
Adds regression coverage for existing parser behavior. |
test/cli-help.js |
Tests help content, wrapping, alignment, and entrypoint precedence. |
package.json |
Adds the argsclopts dependency. |
bin/run-s/help.js |
Uses shared sequential-command help and updates the repository link. |
bin/run-p/help.js |
Uses shared parallel-command help and updates the repository link. |
bin/npm-run-all/help.js |
Uses shared help, adds a shorthand example, and updates the repository link. |
bin/common/help.js |
Filters options by command and configures help layout. |
bin/common/help-options.js |
Defines shared option metadata and descriptions. |
Review effort: Balanced
This was referenced Nov 24, 2026
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
usage(options, { lineWidth: 79, descriptionColumn: 27 })instead of maintaining local wrapping and spacing workarounds.Upstream release dependency
Requires argsclopts 1.1.1.
The upstream release target changed from 1.1.0 to 1.1.1 following a release-automation issue.
The dependency now requires
argsclopts@^1.1.1.At the latest validation attempt,
npm view argsclopts@1.1.1 versionstill returned E404.Keep this PR in draft until the package is available, then install it, rerun validation, and mark the PR ready.
There are no saved local-path dependencies or lockfile changes.
Validation
npm testpreviously passed against a temporary installation of the local unpublished argsclopts implementation, including lint and type checks.git diff --checkpassed for the dependency-floor update.