Boost logo

Boost Users :

Subject: Re: [Boost-users] program_options
From: Ovanes Markarian (om_boost_at_[hidden])
Date: 2009-12-07 10:33:38


James,

Hicham's point was to generate OS system dependent short long options
notations. Like --help or -h on Posix and /help or /h on Windows. AFAIK,
program options does not provide this feature.

With Kind Regards,
Ovanes

On Mon, Dec 7, 2009 at 4:24 PM, James C. Sutherland <
James.Sutherland_at_[hidden]> wrote:

> Try the syntax:
>
> desc.add_options()
> ( "help", "print help message\n" )
> ( "Long-Option-Name,o", ...);
>
> and then you have:
> --Long-Option-Name
> or
> -o
> as valid usages.
>
>
>
> On Dec 7, 2009, at 8:10 AM, Hicham Mouline wrote:
>
> > For command-line options, I understand from what I read so far that the
> > options should be like
> > --option_name=value
> >
> > There is a system(I believe it is gnu) which has the long and short
> versions
> > of options, like
> > -h and --help
> > Also, on winxxx systems, usually the command line options are indicated
> with
> > a / like /? or /x /X ....
> >
> > Is it possible to tune program_options to choose the platform's default
> way
> > of treating options?
> >
> > Regards,
> >
> > _______________________________________________
> > Boost-users mailing list
> > Boost-users_at_[hidden]
> > http://lists.boost.org/mailman/listinfo.cgi/boost-users
>
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>



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