Skip to content

Restrict the number of values of "-p" and "-v" #33

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

Merged
merged 2 commits into from
Aug 16, 2022

Conversation

slp
Copy link
Collaborator

@slp slp commented Aug 16, 2022

With clap, "multiple(true)" implies that an argument may appear morethan once, but also that each time can declare multiple values. This behavior clobbers the positional argument IMAGE.

To prevent this, declare a limit of 1 value per occurrence.

With clap, "multiple(true)" implies that an argument may appear more
than once, but also that each time can declare multiple values. This
behavior clobbers the positional argument IMAGE.

To prevent this, declare a limit of 1 value per occurrence.

Fixes: containers#32

Signed-off-by: Sergio Lopez <[email protected]>
@slp slp force-pushed the fix-multiple-args branch from b3903f7 to f9f4d4f Compare August 16, 2022 15:54
This version just contains a minor fix in the way arguments are
parsed, bump release number to v0.2.2

Signed-off-by: Sergio Lopez <[email protected]>
@slp slp merged commit e67d0ea into containers:main Aug 16, 2022
@slp slp deleted the fix-multiple-args branch August 16, 2022 16:03
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