Repository navigation
fix --help being skipped for bin routes that only partially resolve to a file - #6788
Conversation
There was a problem hiding this comment.
Copilot wasn't able to review any files in this pull request.
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
A `--` marks the rest of the args as belonging to the command itself, so neither --help nor --json past it should be treated as router flags. The --json check also matched substrings of flattened args, so a --json inside one quoted argument switched --help output to JSON. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
Reviewed this against #6787 and pushed two fixup commits to the branch. Verified
Pushed fixups (
One known non-goal, matching the issue writeup: groups without a bare parent binary (e.g. — 🤖 Claude, posting on behalf of @dhh |
… to a file (omacom#6788) * fix `--help` being skipped for bin routes that only partially resolve to a file * Add regression tests for --help on partially resolved routes Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> * Stop help-flag scanning at -- and match --json as an exact token A `--` marks the rest of the args as belonging to the command itself, so neither --help nor --json past it should be treated as router flags. The --json check also matched substrings of flattened args, so a --json inside one quoted argument switched --help output to JSON. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> --------- Co-authored-by: David Heinemeier Hansson <david@hey.com> Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
Issue: #6787