Boost logo

Boost Users :

From: Olaf van der Spek (olafvdspek_at_[hidden])
Date: 2006-04-19 11:17:56


On 4/19/06, Santosh Joseph <santoshjoseph73_at_[hidden]> wrote:
>
> If I have an option that looks like this:
> options_description desc("options");
> desc.add_options()("server,s",value<string>(&server),"");
>
> I know this can parse the following options:
> --server arg
> -s arg
> but how can I also parse the following automatically:
> -server arg
> /server arg
>
> Is there a style flag to set? I looked at the
> documentation but I'm a little confused by all the
> style_t flags.

Looks like the allow_long_disguise and allow_slash_for_short flags should do.


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