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

Repeatable required option parses incorrectly. #46

Open
afranchuk opened this issue Feb 21, 2020 · 0 comments
Open

Repeatable required option parses incorrectly. #46

afranchuk opened this issue Feb 21, 2020 · 0 comments

Comments

@afranchuk
Copy link

From the README, I expected

exe (-l <lines>)...      repeatable( required("-l") & value("lines", ids) )

to parse exe -l 0 -l 1 -l 2 where ids would contain 0, 1, and 2. However, it tries to parse the additional -l's, and converts them to 0 values (i.e., ids contains 0, 0, 1, 0, 2).

Also, exe -l 0 1 2 is accepted (which I think should be rejected) and ids contains 0, 1, 2.

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

No branches or pull requests

1 participant