Boost logo

Boost Users :

From: Luke Elliott (luke_elliott_at_[hidden])
Date: 2006-04-26 18:32:13


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.


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net