Skip to content

Remove RegisterOption argument registration (allow other argument types) #189

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

gareth-cross
Copy link
Contributor

While attempting to expose an argument of type std::size_t, I encountered an issue where RegisterOption rejects the argument because it is not one of bool, int, double, std::string.

I lack some context here, but as best I can tell from the code the RegisterOption call is unnecessary - the parsing is handled by boost::program_options::options_description and the values in options_int_, etc... are never accessed.

If this is the case, it is straightforward to remove the call to RegisterOption - then other argument types can be added.

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.

2 participants