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

Duplicate option not detected when added #99

Open
pgerell opened this issue Oct 18, 2020 · 0 comments
Open

Duplicate option not detected when added #99

pgerell opened this issue Oct 18, 2020 · 0 comments

Comments

@pgerell
Copy link

pgerell commented Oct 18, 2020

According to the documentation, options_description::add should throw duplicate_variable_error.
This is not the case. Instead ambiguous_option is thrown when parsing the command line.
Ironically from within a function called find_nothrow

Many of the tests in https://github.com/boostorg/program_options/blob/develop/test/exception_test.cpp should throw duplicate_variabl_error

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