
10 Apr
2010
10 Apr
'10
2:12 a.m.
Hello. I'm using boost.program_options and I want to know if I can restrict the possible values for an option. I couldn't find an obvious way in the documentation. Thanks.
As far as I'm aware program_options only gives you the values, your code will have to decide if they're valid and report an error if not. There are a few different ways to validate parameters like this, these are listed in the docs. Cheers, Adam.