Support -- end-of-options separator #53
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?
User story: So that I can pass defensive or flag-like positional arguments without surprise,
forgeshould honor the standard--end-of-options separator across its parsers.Part of the "Forge / workspace CLI tooling" arc.
forge's argument parsers (parse_repo_only_args, parse_repo_positionals, and the per-command while loops) do not recognize the -- separator. Arguments after -- should be treated as positional values, not flags. This is a standard Unix convention that gh supports via cobra. Practical impact is low since forge positional args are typically numbers or well-formed branch names, but supporting it prevents surprising behavior when users or scripts defensively pass -- before positional arguments.