
26 Apr
2006
26 Apr
'06
10:32 p.m.
Hi Is it possible to make options mandatory in program_options? I see some references to such functionality in various review emails, but I can't find anything in the docs themselves. Somewhat related: I actually want the mandatory options to be positional options. I there's an exception class too_few_positional_options_error but it doesn't appear to be used at all (too_many_positional_options_error is). The solution I have at the moment is to have a separate options_description for mandatory options and then to check for count() != 0 for those options after parsing... Thanks in advance Luke Elliott.
6950
Age (days ago)
6950
Last active (days ago)
0 comments
1 participants
participants (1)
-
Luke Elliott