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: distinct multi-occurs and unlimited multi-args #255

Merged
merged 4 commits into from
Oct 11, 2023

Conversation

sigoden
Copy link
Owner

@sigoden sigoden commented Oct 8, 2023

*/+ at option name for multi-occurs
*/+ at notation name for multi-values

# @option --oa*               multi-occurs
# @option --ob <V1> <V2>      two-args multi-values
# @option --oc <V+>           unlimited multi-values
# @arg args*
$ prog --oa v1 --oa v2 v3
argc_oa=( v1 v2 )
argc_args=( v3 )
prog --ob v1 v2 v3
argc_ob=( v1 v2 )
argc_args=( v3 )
prog --ob v1 v2 v3
argc_ob=( v1 v2 v3 )
argc_args=( )

@sigoden sigoden merged commit 44310b5 into main Oct 11, 2023
3 checks passed
@sigoden sigoden deleted the feat-ulimited-args branch October 11, 2023 09:51
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