
Hi everyone ! Is there a simple way to make the command line parser throw an error when an option is not specified ? This way i would not have to check this in my code. My program requires the user to specify an input file, and if he doesn't, an error should be displayed. So, is there any support for mandatory parameters (they wouldn't really be options if they are mandatory) ? wbr Bjoern Pollex

Björn Pollex wrote:
Hi everyone !
Is there a simple way to make the command line parser throw an error when an option is not specified ? This way i would not have to check this in my code. My program requires the user to specify an input file, and if he doesn't, an error should be displayed. So, is there any support for mandatory parameters (they wouldn't really be options if they are mandatory) ?
It is not presently supported, there's a feature request on svn.boost.org about that, but no ETA. - Volodya
participants (2)
-
Björn Pollex
-
Vladimir Prus