Boost logo

Boost Users :

Subject: Re: [Boost-users] [Program Options] Requiring command-line options
From: Vladimir Prus (vladimir_at_[hidden])
Date: 2010-06-09 23:31:45


Jeremy Abramson wrote:

> Since there isn't any documentation about this, what's the expected
> behavior here? Does it require that if you include the argument, you
> must include a parameter, or does it mean that you have to require the
> argument itself? The latter is the preferred behavior (for me) but from
> some brief experimentation, that doesn't seem to be the case. Of
> course, I'm not even sure I'm using it correctly, since it's not
> documented anywhere.

Well, there are no 'arguments', there are option. If an option is marked
as required, and is not present in variables_map when 'notify' is called,
you should get an exception.

- 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