Skip to content

fix: handle built-in help flags in Command.run#4

Merged
bentruyman merged 1 commit intomainfrom
fix/help
Apr 10, 2026
Merged

fix: handle built-in help flags in Command.run#4
bentruyman merged 1 commit intomainfrom
fix/help

Conversation

@bentruyman
Copy link
Copy Markdown
Owner

Resolve built-in help before direct Command.run() falls through to
argument parsing so leaf commands do not swallow --help as a missing
variadic argument.

Keep built-in help and version detection behind --, and route nested
help lookups from the matched subcommand position so interleaved parent
flags still resolve to the deepest command.

Resolve built-in help before direct Command.run() falls through to
argument parsing so leaf commands do not swallow --help as a missing
variadic argument.

Keep built-in help and version detection behind --, and route nested
help lookups from the matched subcommand position so interleaved parent
flags still resolve to the deepest command.
@bentruyman bentruyman merged commit fef9ff0 into main Apr 10, 2026
1 check passed
@bentruyman bentruyman deleted the fix/help branch April 10, 2026 02:07
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