Boost logo

Boost Users :

Subject: Re: [Boost-users] [Program Options]
From: Vladimir Prus (vladimir_at_[hidden])
Date: 2009-06-03 12:38:29


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


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