Boost logo

Boost :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2003-05-22 02:25:46


Hi Matthias,

Matthias Troyer wrote:

> Hi Volodya,
>
> Just a quick question:
>
> In our current applications we use options like
>
> qmcrun -Tmin 60 -Tmax 900 -Tc 3600 -Nmin 4 -Nmax 8 ...
>
> Are such options (single -, but long option name) possible in your
> library without writing custom parsers?

Quick answer: yes. This style is common enough to deserve direct support ---
there's style option "allow_long_disguise" which enables it.
Please see:

http://boost-sandbox.sourceforge.net/program_options/html/classboost_1_1program__options_1_1cmdline.html

and in particular

http://boost-sandbox.sourceforge.net/program_options/html/classboost_1_1program__options_1_1cmdline.html#s14s11

- Volodya


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk