Skip to content

Add support for end-of-options delimiter - #735

Merged
DannyBen merged 2 commits into
masterfrom
add/end-of-options-delimiter
Sep 26, 2026
Merged

DannyBen merged 2 commits into
masterfrom
add/end-of-options-delimiter

Conversation

@DannyBen

@DannyBen DannyBen commented Sep 25, 2026 •

Copy link
Copy Markdown
Member

cc #734

Adds support for using -- as an end-of-options delimiter. For commands that
define positional arguments, values after the delimiter are parsed as positional
arguments even when they start with -.

Commands with catch_all retain their existing special behavior: everything
after -- is stored in other_args, even when an optional positional argument
is still available.

Also adds an end-of-options-delimiter example demonstrating the new behavior.


@DannyBen DannyBen added this to the 2.0.0 milestone Sep 25, 2026
@DannyBen
DannyBen merged commit 1842f0e into master Sep 26, 2026
7 checks passed
@DannyBen
DannyBen deleted the add/end-of-options-delimiter branch September 26, 2026 08:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant