-
Notifications
You must be signed in to change notification settings - Fork 84
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Summary
rtk git -C <path> ... is rejected by CLI parser, while native git -C <path> ... works.
Currently only separator form works:
- ✅
rtk git -- -C <path> status --short --branch - ❌
rtk git -C <path> status --short --branch
Environment
- RTK:
rtk 0.20.0 - OS: Linux (WSL2 Ubuntu)
- git:
2.43.0
Reproduction
git -C /home/pavelbe/Projects/rtk-lab status --short --branch
# exit 0
rtk git -C /home/pavelbe/Projects/rtk-lab status --short --branch
# exit 2
# error: unexpected argument -C found
rtk git -- -C /home/pavelbe/Projects/rtk-lab status --short --branch
# exit 0Actual
rtk git -C ... fails with:
error: unexpected argument -C found
Usage: rtk git [OPTIONS] <COMMAND>
Expected
Either of these options would solve parity expectations:
- Support
-Cin directrtk git -C ...form (preferred parity with git), or - Explicitly document and normalize this at rewrite layer, but still ideally keep native CLI parity.
Why this matters
Hook/rewrite tooling frequently generates git -C ... patterns for repo-scoped operations. Lack of direct support forces proxy fallback and reduces native RTK coverage.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working