|
Boost Users : |
From: Vladimir Prus (ghost_at_[hidden])
Date: 2005-11-21 02:05:24
Hi Merrill,
first of all, please configure your mail (or news client) to:
- preserve threads
- do line wrapping
Both issue makes reading a bit harder.
> po::variables_map vm;
> po::store(po::command_line_parser(ac, av).
> options(desc).positional(p).run(), vm);
> po::notify(vm);
>
> which is the example from
> http://www.boost.org/doc/html/program_options/tutorial.html. However, the
> code still bombs if I give it a positional parameter or an option it isn't
> expecting.
"bombs" is fairly inexact. You mean your monitor explodes? Or something
else? Please
- specify the exact behaviour you see
- provide minimal complete example which exposes the behaviour
The expected behaviour on unknown options is to throw an exception. Do you
have a "catch" statement?
- 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