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

canonical_name option for error_with_option_name is giving NULL string #102

Open
sgoru opened this issue Oct 26, 2020 · 0 comments
Open

Comments

@sgoru
Copy link

sgoru commented Oct 26, 2020

The error is "option is ambiguous and matches 'parent_run' and 'parent_hierarchy' " instead it should be "option '-parent' is ambiguous and matches '-parent_run' and '-parent_hierarchy' " Here since -parent is canonical name and it set to NULL string , it is giving the first error message. I have checked the canonical name using get_canonical_name function.
Below is the code snippet.
catch(boost::program_options::error& e){
std::cout<<e.what();
}

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