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

Ticket #4510: implicit_value and positional options conflict #8

Closed
wants to merge 1 commit into from

Conversation

mjdecker
Copy link
Contributor

Add a has_implicit_value method to check if an implicit_value was set. This is used to avoid processing positional arguments for options with implicit_value.

The change seems simple enough, however, I am not nearly as familiar with the library, and I could not build this using the git repo to test it, as there seems to be some problem with building all the boost libraries on the main git repo. However, I did test it by applying the changes to the latest release of boost (1.57.0) and it seems to work fine.

…. Used to avoid processing positional arguments for options with implicit_value.
@vprus
Copy link
Collaborator

vprus commented Dec 30, 2014

Michael,

thanks for the patch. I've pushed it, though I've renamed the method to be 'adjacent_tokens_only' - so that value_semantics interface does not mention the notion of 'implicit' which is only present in typed_value right now. I've also reformatted the commit message to follow standard git commit message guidelines.

Any chance you'll modify tests to check for this new behaviour, so that it does not accidentally break in future?

@mjdecker
Copy link
Contributor Author

I can take a look at the tests.

@mjdecker mjdecker closed this Dec 30, 2014
@mjdecker mjdecker deleted the ticket4510 branch December 30, 2014 15:16
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.

None yet

2 participants