Boost logo

Boost Users :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2007-02-28 01:58:17


Torrey Pines wrote:

> Hi
>
> With the current implementation, the user does not have to supply the
> full option names, e.g. "--he" is as good as "--help", unless there is
> an ambiguity. Is there any way to disable this, i.e. allow only full
> matches?

The parse_command_line function has a 'style' parameter, when you don't
specify a value then 'default_style' is assumed. You'd need to
explicitly pass 'default_style' with 'allow_guessing' masked out.
The styles are defined in cmdline.hpp.

HTH,
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