[boost-users][program_options] How can I restrict possible values?

8 Apr
2010
8 Apr
'10
9:32 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.

10 Apr
10 Apr
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.
5518
Age (days ago)
5520
Last active (days ago)
1 comments
2 participants
participants (2)
-
Adam Nielsen
-
Germán Diago