Accept -R/--repo after resource commands #38
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
forgeonly accepts-R/--repobefore the resource:The GitHub CLI habit is to place the repository flag on the subcommand:
forge issue create -R owner/repo ...currently fails withforge: unknown option for issue create: -Rbecause the top-level parser stops before command-specific argument parsing. This is easy for agents and humans to get wrong when muscle memory comes fromgh.Proposed behavior
Accept
-R/--repoboth before and after the resource/command for every command that needs a repository, matchingghergonomics while keeping the current supported form.Examples that should work:
Acceptance sketch
forge -R owner/repo ...behavior remains unchanged.-R/--repoworks for issue and PR read/write commands.issue create,issue list, andpr createwith command-level repo flags.-Ris missing its value.