Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add terminating_positional to clap.ParseOptions #137

Merged
merged 1 commit into from
Oct 22, 2024

Conversation

Hejsil
Copy link
Owner

@Hejsil Hejsil commented Oct 22, 2024

This option makes clap.parse and clap.parseEx stop parsing after encountering a certain positional index. Setting terminating_positional to 0 will make them stop parsing after the 0th positional has been added to positionals (aka after parsing 1 positional)

This is a revival of #93 and is also a step towards subcommands (#90)

This option makes `clap.parse` and `clap.parseEx` stop parsing after
encountering a certain positional index. Setting
`terminating_positional` to 0 will make them stop parsing after the 0th
positional has been added to `positionals` (aka after parsing 1
positional)
@Hejsil Hejsil force-pushed the terminating_positional branch from f5938a8 to fb84a7d Compare October 22, 2024 15:22
@Hejsil Hejsil merged commit 1e8036c into master Oct 22, 2024
26 checks passed
@Hejsil Hejsil deleted the terminating_positional branch October 22, 2024 15:25
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