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

Allow acceptUnknownOption with variableArity #555

Merged
merged 2 commits into from
Oct 12, 2023
Merged

Conversation

hsudhof
Copy link
Contributor

@hsudhof hsudhof commented May 1, 2023

VariableArity makes it difficult to decide whether a token belongs to a preceding variableArity Parameter or is a new unknown parameter.

This commits makes a variableArity Parameter consume all tokens until it encounters a known option.

Fixes: #377

Copy link
Collaborator

@mkarg mkarg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for your contribution! Unfortunately recent changes to this particular unit test makes it fail once you add the proposed `@Parameters(separators = "=") annotation. Can you please rebase your PR ontop of the master branch and then rework your test accordingly? Thanks! 😃

@hsudhof
Copy link
Contributor Author

hsudhof commented Oct 9, 2023

ACK

VariableArity makes it difficult to decide whether a
token belongs to a preceding variableArity Parameter
or is a new unknown parameter.

This commits makes a variableArity Parameter consume
all tokens until it encounters a known option.

Fixes: cbeust#377
Copy link
Collaborator

@mkarg mkarg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for this contribution! :-)

@mkarg mkarg merged commit fbff072 into cbeust:master Oct 12, 2023
1 check passed
@mkarg mkarg added the bug Bug label Dec 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Variable Arity parameters don't work with setAcceptUnknownOption(true)
2 participants