Skip to content

Fix bin/dev route argument format#2309

Merged
justin808 merged 1 commit intoshakacode:masterfrom
K4sku:fix-bin-dev-route-argument
Jan 18, 2026
Merged

Fix bin/dev route argument format#2309
justin808 merged 1 commit intoshakacode:masterfrom
K4sku:fix-bin-dev-route-argument

Conversation

@K4sku
Copy link
Copy Markdown
Contributor

@K4sku K4sku commented Jan 17, 2026

Summary

  • Fix --route argument in bin/dev template to use single argument format (--route=value) instead of two separate arguments

Problem

When running ./bin/dev without arguments, the DEFAULT_ROUTE value (hello_world) was being treated as a standalone command rather than the value for --route, causing:

Unknown argument: hello_world
Run 'dev help' for usage information

Solution

Changed from:

argv_with_defaults.push("--route", DEFAULT_ROUTE)

To:

argv_with_defaults.push("--route=#{DEFAULT_ROUTE}")

Test plan

  • Run ./bin/dev without arguments - should no longer error
  • Run ./bin/dev --route=custom_route - should still work with custom routes

Summary by CodeRabbit

  • Chores
    • Simplified development environment configuration formatting for improved consistency with standard conventions.

✏️ Tip: You can customize this high-level summary in your review settings.

Pass --route as a single argument with = instead of two separate
arguments. Without this, the DEFAULT_ROUTE value is treated as
a standalone command rather than the value for --route, causing
"Unknown argument: hello_world" error.
Copy link
Copy Markdown

@greptile-apps greptile-apps Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Your free trial has ended. If you'd like to continue receiving code reviews, you can add a payment method here.

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Jan 17, 2026

Walkthrough

The bin/dev script was modified to pass the default route argument using a combined format --route=<DEFAULT_ROUTE> instead of two separate arguments. The conditional logic for applying the default route remains unchanged and only activates when no existing --route argument is present.

Changes

Cohort / File(s) Summary
Route argument format update
react_on_rails/lib/generators/react_on_rails/templates/base/base/bin/dev
Changed default route argument format from two separate arguments to single combined argument: ["--route", "<DEFAULT_ROUTE>"]["--route=<DEFAULT_ROUTE>"]

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Possibly related PRs

Suggested labels

bug, review-needed

Poem

🐰 Hops over the route with glee,
One argument's now the key,
No more splitting pairs in two,
The dev script zips right through!

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title 'Fix bin/dev route argument format' is clear, specific, and directly summarizes the main change: fixing how the --route argument is formatted in the bin/dev file.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@justin808
Copy link
Copy Markdown
Member

@claude review this PR.

@claude
Copy link
Copy Markdown
Contributor

claude Bot commented Jan 18, 2026

Claude encountered an error —— View job

Command failed: git fetch origin --depth=20 fix-bin-dev-route-argument

I'll analyze this and get back to you.

@justin808 justin808 merged commit ed02878 into shakacode:master Jan 18, 2026
2 checks passed
@justin808
Copy link
Copy Markdown
Member

@K4sku big thanks! perfect!

justin808 added a commit that referenced this pull request Jan 18, 2026
- Add [16.2.1] section with release date 2026-01-18
- Add PR #2309 fix for bin/dev route argument parsing
- Move PR #1868 benchmarking entry to 16.2.1
- Update version links at bottom of file

Co-Authored-By: Claude Opus 4.5 <[email protected]>
justin808 added a commit that referenced this pull request Jan 18, 2026
## Summary
- Add [16.2.1] section with release date 2026-01-18
- Add PR #2309 fix for bin/dev route argument parsing under Fixed
- Move PR #1868 benchmarking entry to 16.2.1 under Developer
(Contributors Only)
- Update version links at bottom of file

## Test plan
- [x] Pre-commit hooks pass
- [x] Changelog formatting follows conventions
- [x] Version links are correct

🤖 Generated with [Claude Code](https://claude.ai/claude-code)

Co-authored-by: Claude Opus 4.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants