$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
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